html {
    cursor: grab;
}
html:active,
a {
    cursor: grabbing;
}
body,
a,
input,
img {
    user-drag: none;
    user-select: none;
    touch-callout: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-drag: none;
    -moz-user-select: none;
    -moz-touch-callout: none;
}
input,
textarea,
a {
    -webkit-tap-highlight-color: transparent;
}
a,
a:visited {
    text-decoration: none;
}
a:focus,
a:active,
a:hover {
    outline: none;
}
:root {
    --bg-start: #0d1117;
    --bg-mid: #111820;
    --bg-end: #0f1319;
    --card-bg: #161b22;
    --text-primary: #e6edf3;
    --text-secondary: #b0b8c4;
    --text-muted: #7d8590;
    --blue-accent: #58a6ff;
    --blue-deeper: #388bfd;
    --blue-light: #79c0ff;
    --blue-pale: #1c2b3d;
    --green-accent: #3fb950;
    --green-deeper: #2ea043;
    --green-pale: #1a2e22;
    --purple-accent: #bc8cff;
    --purple-deeper: #a371f7;
    --purple-pale: #221f33;
    --amber-accent: #d2991d;
    --amber-pale: #2a2316;
    --cyan-accent: #39d2c0;
    --cyan-pale: #182b2a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5), 0 3px 10px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(88, 166, 255, 0.12);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-sans:
        'Segoe UI', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', 'Helvetica Neue', system-ui, -apple-system,
        sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(175deg, var(--bg-start) 0%, var(--bg-mid) 35%, var(--bg-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
    color: var(--text-primary);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* ========== 背景装饰圆 ========== */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
    opacity: 0.45;
    will-change: transform;
}
.bg-orb--1 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.45) 0%, rgba(88, 150, 240, 0.15) 50%, transparent 70%);
    top: -100px;
    right: -80px;
    animation: orbFloat1 14s ease-in-out infinite;
}
.bg-orb--2 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(188, 140, 255, 0.4) 0%, rgba(160, 120, 230, 0.14) 50%, transparent 70%);
    bottom: -90px;
    left: -70px;
    animation: orbFloat2 16s ease-in-out infinite;
}
.bg-orb--3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(57, 210, 192, 0.35) 0%, rgba(45, 190, 175, 0.12) 50%, transparent 70%);
    top: 55%;
    left: 60%;
    animation: orbFloat3 12s ease-in-out infinite;
    filter: blur(60px);
    opacity: 0.32;
}
.bg-orb--4 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(210, 153, 29, 0.3) 0%, rgba(190, 135, 20, 0.1) 50%, transparent 70%);
    top: 20%;
    left: 12%;
    animation: orbFloat4 18s ease-in-out infinite;
    filter: blur(55px);
    opacity: 0.3;
}
.bg-dots {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.16;
    background-image: radial-gradient(circle, rgba(200, 210, 225, 0.55) 1.2px, transparent 1.2px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

@keyframes orbFloat1 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-28px, 22px) scale(1.08);
    }
    50% {
        transform: translate(15px, -18px) scale(0.94);
    }
    75% {
        transform: translate(-20px, -30px) scale(1.05);
    }
}
@keyframes orbFloat2 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    30% {
        transform: translate(25px, -20px) scale(1.1);
    }
    60% {
        transform: translate(-18px, 15px) scale(0.92);
    }
    85% {
        transform: translate(10px, 28px) scale(1.04);
    }
}
@keyframes orbFloat3 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    40% {
        transform: translate(-15px, -22px) scale(1.06);
    }
    70% {
        transform: translate(20px, 10px) scale(0.95);
    }
}
@keyframes orbFloat4 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    35% {
        transform: translate(18px, 15px) scale(1.07);
    }
    65% {
        transform: translate(-22px, -10px) scale(0.93);
    }
}

/* ========== 主卡片 ========== */
.main-card {
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 44px 42px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    transition:
        box-shadow var(--transition-smooth),
        transform var(--transition-smooth);
    border: 1px solid rgba(48, 54, 61, 0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.main-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: rgba(88, 166, 255, 0.25);
}

/* ========== 头像区域 ========== */
.avatar-wrap {
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}
.avatar-ring {
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 3px dashed rgba(88, 166, 255, 0.45);
    animation: ringSpin 28s linear infinite;
    opacity: 0.65;
    pointer-events: none;
}
@keyframes ringSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #4a6fa5 0%, #3b5998 35%, #5b4d9e 100%);
    background-image: url('avatar.png');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0;
    position: relative;
    z-index: 1;
    box-shadow:
        0 0 0 8px rgba(88, 166, 255, 0.18),
        0 8px 28px rgba(30, 60, 120, 0.45);
    animation: avatarPulse 5s ease-in-out infinite;
    transition: transform var(--transition-bounce);
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}
.avatar:hover {
    transform: scale(1.06);
}
@keyframes avatarPulse {
    0%,
    100% {
        box-shadow:
            0 0 0 8px rgba(88, 166, 255, 0.18),
            0 8px 28px rgba(30, 60, 120, 0.45);
    }
    50% {
        box-shadow:
            0 0 0 18px rgba(88, 166, 255, 0.07),
            0 8px 40px rgba(88, 166, 255, 0.22);
    }
}

/* ========== 姓名 & 标签 ========== */
.name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}
.tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}
.divider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 18px;
}
.divider-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(88, 166, 255, 0.5);
    display: block;
}
.divider-dots span:nth-child(2) {
    width: 8px;
    height: 8px;
    background: rgba(121, 192, 255, 0.7);
}
.divider-dots span:nth-child(3) {
    width: 5px;
    height: 5px;
    opacity: 0.55;
    background: rgba(188, 140, 255, 0.55);
}

/* ========== 简介 ========== */
.bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 420px;
    margin: 0 auto 22px;
    letter-spacing: 0.015em;
}

/* ========== 技能标签 ========== */
.skills-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}
.skill-tag {
    display: inline-block;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: default;
    transition: all var(--transition-smooth);
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    border: 1px solid transparent;
}
.skill-tag--1 {
    background: rgba(88, 166, 255, 0.1);
    color: #79c0ff;
    border-color: rgba(88, 166, 255, 0.28);
}
.skill-tag--1:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(88, 166, 255, 0.2);
}
.skill-tag--2 {
    background: rgba(63, 185, 80, 0.1);
    color: #56d364;
    border-color: rgba(63, 185, 80, 0.28);
}
.skill-tag--2:hover {
    background: rgba(63, 185, 80, 0.2);
    border-color: rgba(63, 185, 80, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(63, 185, 80, 0.2);
}
.skill-tag--3 {
    background: rgba(210, 153, 29, 0.1);
    color: #e3b341;
    border-color: rgba(210, 153, 29, 0.28);
}
.skill-tag--3:hover {
    background: rgba(210, 153, 29, 0.2);
    border-color: rgba(210, 153, 29, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(210, 153, 29, 0.2);
}
.skill-tag--4 {
    background: rgba(188, 140, 255, 0.1);
    color: #c9a0ff;
    border-color: rgba(188, 140, 255, 0.28);
}
.skill-tag--4:hover {
    background: rgba(188, 140, 255, 0.2);
    border-color: rgba(188, 140, 255, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(188, 140, 255, 0.2);
}

/* ========== 跳转按钮组 ========== */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-bounce);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}
.btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* 按钮配色 */
.btn--gitee {
    background: #1f6feb;
    color: #fff;
    border-color: #1f6feb;
    box-shadow: 0 4px 14px rgba(31, 111, 235, 0.3);
}
.btn--gitee:hover {
    background: #388bfd;
    border-color: #388bfd;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(31, 111, 235, 0.45);
}
.btn--gitee::after {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}
.btn--gitee:hover::after {
    opacity: 1;
}

.btn--portfolio {
    background: transparent;
    color: #58a6ff;
    border-color: rgba(88, 166, 255, 0.45);
    box-shadow: 0 4px 14px rgba(88, 166, 255, 0.08);
}
.btn--portfolio:hover {
    background: rgba(88, 166, 255, 0.1);
    border-color: #58a6ff;
    color: #79c0ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(88, 166, 255, 0.22);
}

.btn--blog,
.btn--box {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}
.btn--blog:hover,
.btn--box:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
}
.btn--blog::after,
.btn--box::after {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}
.btn--blog:hover::after,
.btn--box:hover::after {
    opacity: 1;
}

.btn--box {
    width: 100%;
    line-height: 2rem;
    margin-top: 24px;
    border-radius: 1rem;
    background: #5c85f6cc;
    border-color: #5c85f6cc;
    box-shadow: 0 4px 14px rgba(58, 150, 237, 0.3);
}
.btn--box:hover {
    background: #5c85f6;
    border-color: #5c85f6;
    box-shadow: 0 8px 24px rgba(58, 150, 237, 0.45);
}

.btn--email {
    background: transparent;
    color: #3fb950;
    border-color: rgba(63, 185, 80, 0.45);
    box-shadow: 0 4px 14px rgba(63, 185, 80, 0.08);
}
.btn--email:hover {
    background: rgba(63, 185, 80, 0.1);
    border-color: #3fb950;
    color: #56d364;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(63, 185, 80, 0.22);
}

/* 按钮图标 */
.btn-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========== 页脚 ========== */
.footer-note {
    margin-top: 24px;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    opacity: 0.7;
}
.footer-note .heart {
    display: inline-block;
    color: #f85149;
    animation: heartBeat 2.2s ease-in-out infinite;
    margin: 0 2px;
}
@keyframes heartBeat {
    0%,
    100% {
        transform: scale(1);
    }
    12% {
        transform: scale(1.22);
    }
    24% {
        transform: scale(1);
    }
    36% {
        transform: scale(1.16);
    }
    48% {
        transform: scale(1);
    }
}

/* ========== 响应式 - 平板 ========== */
@media (max-width: 768px) {
    body {
        padding: 18px;
        align-items: flex-start;
        padding-top: 40px;
    }
    .main-card {
        padding: 36px 28px 32px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        border: 1px solid rgba(48, 54, 61, 0.6);
    }
    .main-card:hover {
        box-shadow: var(--shadow-lg);
        transform: none;
        border-color: rgba(88, 166, 255, 0.2);
    }
    .avatar {
        width: 100px;
        height: 100px;
        font-size: 44px;
    }
    .avatar-ring {
        inset: -7px;
        border-width: 2.5px;
    }
    .name {
        font-size: 1.7rem;
    }
    .tagline {
        font-size: 0.88rem;
    }
    .bio {
        font-size: 0.88rem;
        max-width: 100%;
        padding: 0 4px;
    }
    .skill-tag {
        font-size: 0.8rem;
        padding: 6px 13px;
    }
    .btn {
        font-size: 0.84rem;
        padding: 11px 18px;
        gap: 5px;
    }
    .btn-group {
        gap: 10px;
    }
    .bg-orb--1 {
        width: 220px;
        height: 220px;
        top: -70px;
        right: -60px;
    }
    .bg-orb--2 {
        width: 180px;
        height: 180px;
        bottom: -60px;
        left: -50px;
    }
    .bg-orb--3 {
        width: 120px;
        height: 120px;
        top: 50%;
        left: 55%;
    }
    .bg-orb--4 {
        width: 90px;
        height: 90px;
        top: 15%;
        left: 8%;
    }
    .bg-dots {
        background-size: 24px 24px;
    }
}

/* ========== 响应式 - 小手机 ========== */
@media (max-width: 480px) {
    body {
        padding: 12px;
        padding-top: 24px;
    }
    .main-card {
        padding: 28px 16px 24px;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-sm);
        border: 1px solid rgba(48, 54, 61, 0.55);
    }
    .main-card:hover {
        box-shadow: var(--shadow-md);
        transform: none;
        border-color: rgba(88, 166, 255, 0.18);
    }
    .avatar {
        width: 82px;
        height: 82px;
        font-size: 36px;
        box-shadow:
            0 0 0 5px rgba(88, 166, 255, 0.18),
            0 6px 20px rgba(30, 60, 120, 0.4);
    }
    @keyframes avatarPulse {
        0%,
        100% {
            box-shadow:
                0 0 0 5px rgba(88, 166, 255, 0.18),
                0 6px 20px rgba(30, 60, 120, 0.4);
        }
        50% {
            box-shadow:
                0 0 0 12px rgba(88, 166, 255, 0.06),
                0 6px 28px rgba(88, 166, 255, 0.2);
        }
    }
    .avatar-ring {
        inset: -5px;
        border-width: 2px;
    }
    .name {
        font-size: 1.45rem;
    }
    .tagline {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    .bio {
        font-size: 0.82rem;
        margin-bottom: 16px;
        padding: 0;
        line-height: 1.65;
    }
    .skills-wrap {
        gap: 7px;
        margin-bottom: 20px;
    }
    .skill-tag {
        font-size: 0.75rem;
        padding: 5px 11px;
    }
    .btn-group {
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
    }
    .btn {
        justify-content: center;
        font-size: 0.82rem;
        padding: 13px 16px;
        width: 100%;
        text-align: center;
    }
    .divider-dots {
        margin-bottom: 12px;
        gap: 6px;
    }
    .footer-note {
        font-size: 0.72rem;
        margin-top: 16px;
    }
    .bg-orb--1 {
        width: 150px;
        height: 150px;
        top: -40px;
        right: -40px;
        filter: blur(50px);
    }
    .bg-orb--2 {
        width: 120px;
        height: 120px;
        bottom: -35px;
        left: -35px;
        filter: blur(45px);
    }
    .bg-orb--3 {
        width: 80px;
        height: 80px;
        filter: blur(40px);
        opacity: 0.22;
    }
    .bg-orb--4 {
        width: 60px;
        height: 60px;
        filter: blur(35px);
        opacity: 0.2;
    }
    .bg-dots {
        background-size: 18px 18px;
        opacity: 0.11;
    }
}

/* ========== 极小屏幕 ========== */
@media (max-width: 360px) {
    .main-card {
        padding: 22px 10px 18px;
    }
    .avatar {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }
    .name {
        font-size: 1.3rem;
    }
    .bio {
        font-size: 0.76rem;
    }
    .btn {
        font-size: 0.78rem;
        padding: 11px 14px;
    }
    .skill-tag {
        font-size: 0.7rem;
        padding: 4px 9px;
    }
}

/* ========== 打印 & 高对比度偏好 ========== */
@media print {
    body {
        background: #fff;
        color: #222;
    }
    .bg-orb,
    .bg-dots {
        display: none;
    }
    .main-card {
        box-shadow: none;
        border: 1px solid #ddd;
        background: #fff;
        color: #222;
    }
    .name,
    .tagline,
    .bio {
        color: #222;
    }
    .skill-tag {
        color: #222 !important;
        background: #f0f0f0 !important;
        border-color: #ccc !important;
    }
    .btn {
        color: #222 !important;
        background: #f5f5f5 !important;
        border-color: #999 !important;
    }
    .footer-note {
        color: #555;
    }
}
@media (prefers-reduced-motion: reduce) {
    .bg-orb,
    .avatar-ring,
    .avatar,
    .heart {
        animation: none !important;
        transition: none !important;
    }
}

/**滚动条 */
html,
.scroll-bar-none {
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
html::-webkit-scrollbar,
.scroll-bar-none::-webkit-scrollbar {
    display: none;
    width: 0;
}

textarea::-webkit-scrollbar,
.scroll-bar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
textarea::-webkit-scrollbar-track,
.scroll-bar::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0);
    box-shadow: inset 0px 0px 0px 0px #ffffff;
    border-radius: 5px;
}
textarea::-webkit-scrollbar-thumb,
.scroll-bar::-webkit-scrollbar-thumb {
    background-color: #c8c8c899;
    box-shadow: inset 0px 0px 0px 0px #ffffff;
    border-radius: 5px;
}
