.qr-grid {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.8);
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 10;
    /* 小箭头 */
    &::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 10px solid transparent;
        border-top-color: rgba(0,0,0,0.8);
    }
}

/* 单个二维码 */
.qr-item {
    text-align: center;
}

.lazy-qr {
    opacity: 0;
}

/* 加载后的状态 */
.lazy-qr.loaded {
    opacity: 1;
}

.qr-item img {
    width: 240px;
    height: 280px;
    border: 2px solid gold;
    border-radius: 8px;
    background: white;
    padding: 5px;
    box-sizing: border-box;
}
.qr-label {
    color: gold;
    font-size: 12px;
    margin-top: 5px;
    user-select: none; /* 禁止文字选中 */
}
.avatar-frame:hover .qr-grid {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.avatar-label {
    position: absolute;
    top: -25px; /* 位于头像上方 */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700; /* 金色文字 */
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 2;
    /* 小箭头样式 */
    animation: float 2s ease-in-out infinite;
    user-select: none; /* 禁止文字选中 */
}

/* 小箭头动画 */
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}



.content-wrapper {
    width: 100%;
    max-width: 1600px; /* 适当留白 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-content {
    width: 60%;
    padding-right: 80px;
}

/* Typography */
.greeting {
    font-size: 4.5rem; /* 增大字号 */
    margin: 0 0 25px;
    text-shadow: 0 0 10px #6424ac, /* 紫色光晕 */ 0 0 20px rgba(100, 36, 172, 0.7),
    2px 2px 0 #b6dff1; /* 浅蓝色偏移阴影 */
    font-weight: 800;
    letter-spacing: 0.5rem; /* 字母间距扩大 */
    color: #fff;
    text-transform: uppercase; /* 全大写更显艺术感 */
    user-select: none; /* 禁止文字选中 */
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    animation: glow 2s ease-in-out infinite alternate;
    animation: titleFloat 4s ease-in-out infinite;
}
@keyframes glow {
    from { text-shadow: 0 0 10px #557bcd; }
    to { text-shadow: 0 0 20px #8a2be2, 0 0 30px #9370db; }
}
.greeting::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #b6dff1, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}
.greeting:hover::after {
    transform: scaleX(1);
}
.title-line {
    font-size: 2.8rem; /* 适当增大字号 */
    color: #3c85ae;
    margin: 0 0 40px; /* 增加下边距 */
    letter-spacing: 0.5rem; /* 扩大字母间距 */
    font-weight: 700;
    font-family: 'Rajdhani', 'Montserrat', sans-serif; /* 科技感字体 */
    text-shadow:
            0 0 8px rgba(60, 133, 174, 0.6),
            0 0 15px rgba(60, 133, 174, 0.3),
            4px 4px 0 rgba(0, 0, 0, 0.2); /* 3D立体效果 */
    position: relative;
    display: inline-block;
    padding: 0 20px;
    user-select: none;
    text-transform: uppercase; /* 全大写 */
    background: linear-gradient(90deg,
    rgba(60, 133, 174, 0.1) 0%,
    rgba(255,255,255,0.05) 50%,
    rgba(60, 133, 174, 0.1) 100%); /* 渐变背景条 */
    border-left: 3px solid #3c85ae;
    border-right: 3px solid #3c85ae;
    transform-style: preserve-3d;
    animation: titleFloat 4s ease-in-out infinite;
}

/* 悬浮动画 */
@keyframes titleFloat {
    0%, 100% { transform: translateY(0) rotateX(5deg); }
    50% { transform: translateY(-3px) rotateX(-2deg); }
}

/* 霓虹光效伪元素 */
.title-line::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #3c85ae;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: -1;
}

.title-line:hover::before {
    opacity: 0.6;
    transform: scale(1.05);
    animation: neonPulse 1.5s infinite alternate;
}

@keyframes neonPulse {
    from { box-shadow: 0 0 5px #3c85ae; }
    to { box-shadow: 0 0 20px #3c85ae, 0 0 30px rgba(60, 133, 174, 0.5); }
}

.subtitle-line {
    font-size: 1.5rem;
    color: #ddd;
    margin: 30px 0;
    user-select: none; /* 禁止文字选中 */
    animation: titleFloat 4s ease-in-out infinite;
}

.skills {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    animation: titleFloat 4s ease-in-out infinite;
    flex-wrap: wrap; /* 添加这一行允许换行 */
    justify-content: flex-start; /* 保持左对齐 */
}

.skill-badge {
    background: rgba(81, 69, 248, 0.2);
    color: #b6dff1;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.1rem;
    border: 1px solid rgba(74, 158, 255, 0.3);
    user-select: none; /* 禁止文字选中 */
    transition: all 0.3s ease; /* 添加过渡效果 */
    display: inline-flex; /* 更好的内容对齐 */
    animation: titleFloat 4s ease-in-out infinite;
}

/* 悬停放大效果 */
.skill-badge:hover {
    transform: scale(1.1); /* 放大10% */
    box-shadow: 0 0 10px rgba(100, 200, 255, 0.5); /* 添加发光效果 */
    background: rgba(81, 69, 248, 0.3); /* 悬停时背景色加深 */
}

.skill-badge i {
    transition: inherit; /* 继承父元素的过渡效果 */
}

.skill-badge:hover i {
    transform: scale(1.2); /* 图标可以放大更多 */
}

.skill-badge.contact-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 链接样式重置 */
.skill-badge.contact-btn a {
    color: inherit; /* 继承父元素颜色 */
    text-decoration: none !important; /* 强制去除下划线 */
    display: block; /* 使整个区域可点击 */
    width: 100%;
    height: 100%;
    padding: 5px 12px;
}

/* 悬浮动画效果 */
.skill-badge.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow:
            0 5px 15px rgba(100, 200, 255, 0.4),
            inset 0 0 10px rgba(255, 255, 255, 0.2);
    background: rgba(81, 69, 248, 0.4);
}

/* 水波纹点击效果 */
.skill-badge.contact-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
    transition: all 0.6s ease-out;
}

.skill-badge.contact-btn:active::after {
    transform: scale(30, 30) translate(-50%);
    opacity: 0.3;
    transition: transform 0.8s, opacity 1s ease-out;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .skill-badge.contact-btn {
        padding: 4px 10px;
    }
    .skill-badge.contact-btn:hover {
        transform: none; /* 移动端取消悬浮效果 */
    }
}


.welcome {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 20px;
    font-style: italic;
    user-select: none; /* 禁止文字选中 */
    animation: titleFloat 4s ease-in-out infinite;
}
.welcome2 {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 100px;
    font-style: italic;
    user-select: none; /* 禁止文字选中 */
    animation: titleFloat 4s ease-in-out infinite;
}

/* Avatar design */
.avatar-container {
    flex-shrink: 0;
    margin-right: auto; /* 新增：向左推挤其他内容 */
}

.avatar-frame {
    width: 180px;
    height: 180px;
    border: 4px solid white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(74, 158, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    animation: titleFloat 4s ease-in-out infinite;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .skills {
        gap: 10px; /* 缩小间距 */
        justify-content: center; /* 居中对齐 */
        padding: 0 10px; /* 添加一些内边距 */
    }

    .skill-badge {
        padding: 6px 15px; /* 缩小标签内边距 */
        font-size: 0.9rem; /* 缩小字体 */
    }

    /* 确保头像容器在移动端不挤压技能区域 */
    .avatar-container {
        margin-top: 20px;
    }

    .avatar-frame {
        margin-top: 30px;
        width: 150px;
        height: 150px;
    }
}
/* 右下角容器 */
.corner-tip {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
}

/* 图片容器 */
.corner-image {
    width: 40px;
    height: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.qr-avatar {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

/* 图片样式 */
.corner-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.5); /* 金色边框 */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

/* 提示文字 */
.tip-text {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
    width: max-content;
    max-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tip-text .sub-tip {
    font-size: 10px;
    color: #ccc;
    margin-top: 4px;
}
/* 悬停效果 */
.corner-image:hover .tip-text {
    opacity: 1;
    visibility: visible;
    bottom: -70px;
}
.corner-image:hover {
    transform: scale(2);
}


.modal-content {
    transform: scale(0.8); /* 初始缩小 */
    transition: transform 0.3s ease;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}
.enlarged-qr {
    width: 400px;
    height: 400px;
    margin: 10px auto;
    display: block;
    border: 3px solid #ffd700;
}

.close-modal {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 24px;
    color: #999;
}

.corner-image:hover img {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.corner-image:hover .tip-text {
    opacity: 1;
    visibility: visible;
    bottom: -30px;
}

/* 呼吸灯效果 */
@keyframes breath {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

.corner-image img {
    animation: breath 3s infinite;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .corner-tip {
        right: 10px;
        bottom: 10px;
    }
    .corner-image {
        width: 60px;
        height: 60px;
    }
    .enlarged-qr {
        width: 180px;
        height: 180px;
    }
}


.social-icons-container {
    margin-top: 15px;
    width: 100%;
    display: flex;
    justify-content: left;
    animation: titleFloat 4s ease-in-out infinite;
}

.social-icons {
    display: flex;
    gap: 20px; /* 图标间距 */
    justify-content: center;
    align-items: center;
}

.social-icon {
    width: 44px; /* 固定宽度 */
    height: 44px; /* 固定高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden; /* 关键：确保图片被圆形裁剪 */
    position: relative; /* 为伪元素定位准备 */
}

.social-icon img {
    width: 48px; /* 图片显示大小 */
    height: 48px;
    object-fit: contain; /* 保持比例 */
    filter: brightness(0.9);
    transition: all 0.3s ease;
    user-drag: none;
    -webkit-user-drag: none;  /* Safari/Chrome */
    user-select: none;       /* 禁止选中高亮 */
    -webkit-user-select: none;
}

.social-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

icon:hover {
    transform: translateY(-3px);
    background: rgba(74, 158, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-icon:hover img {
    filter: brightness(1.2);
    transform: scale(1.1);
}

/* Platform-specific colors */
.social-icon.bilibili:hover {
    background: #00a1d6;
    border-color: #00a1d6;
}

.social-icon.douyin:hover {
    background: #000;
    border-color: #000;
}

.social-icon.zhihu:hover {
    background: #0084ff;
    border-color: #0084ff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-icons {
        gap: 10px;
    }

    .social-icon {
        width: 34px;
        height: 34px;
    }

    .social-icon img {
        width: 34px;
        height: 34px;
    }
}


/* 提取的CSS样式 */
.card-container {
    width: 300px;
    background: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    font-family: sans-serif;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card-container:hover {
    transform: translateY(-5px);
}

.card-link {
    text-decoration: none;
    display: block;
}

.card-header {
    padding: 15px;
    color: white;
    text-align: center;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.card-description {
    color: #666;
    margin-bottom: 15px;
}

.card-button {
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
}


/* 下拉选择样式 */
.platform-selector {
    margin-bottom: 20px;
    width: 300px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
}

/* 联系方式样式 */
.contact-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.hidden {
    display: none;
}