
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f9fafc;
    color: #333;
    line-height: 1.6;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.hero-section {
    background: linear-gradient(135deg, 
        #FF5E62 0%, 
        #FF9966 20%, 
        #FFDE59 40%, 
        #A0FFA0 60%, 
        #4A9AFF 80%, 
        #A855F7 100%);
    color: white;
    padding: 5rem 0;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    z-index: 1;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #FF5E62, #FF9966);
    top: 10%;
    left: 5%;
    animation: float 8s infinite ease-in-out;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #FFDE59, #A0FFA0);
    bottom: 10%;
    right: 10%;
    animation: float 10s infinite ease-in-out reverse;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #4A9AFF, #A855F7);
    top: 40%;
    right: 15%;
    animation: float 12s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.profile-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
}

.link-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.link-card:hover {
    border-left-color: var(--accent-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-gradient {
    background: linear-gradient(90deg, #FF5E62, #FF9966, #FFDE59, #A0FFA0, #4A9AFF, #A855F7);
    background-size: 300% 100%;
    border: none;
    color: white;
    transition: all 0.3s ease;
    animation: gradientShift 3s infinite alternate;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.skill-badge {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 50px;
    display: inline-block;
}

.gradient-text {
    color: #098187;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 0.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.section-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #FF5E62, #FF9966, #FFDE59, #A0FFA0, #4A9AFF, #A855F7);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        border-radius: 0 0 1rem 1rem;
    }
    
    .profile-img {
        width: 140px;
        height: 140px;
    }
    
    .floating-element {
        display: none;
    }
}
.qr-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    min-width: 180px;
    text-align: center;
    margin-bottom: 15px;
}

.bottom-tooltip {
    bottom: auto;
    top: 100%;
    margin-top: 15px;
    margin-bottom: 0;
}

.qr-tooltip.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateX(-50%) translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0); 
    }
}

.qr-tooltip img {
    width: 150px;
    height: 150px;
    display: block;
    border-radius: 6px;
    margin: 0 auto;
}

.qr-tooltip p {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

/* 二维码箭头 */
.qr-arrow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.top-arrow {
    bottom: auto;
    top: -10px;
    border-top: none;
    border-bottom: 10px solid white;
}

/* 按钮容器定位 */
.position-relative {
    position: relative;
}