:root {
    --primary-color: #1a73e8;
    --secondary-color: #4285f4;
    --accent-color: #8ab4f8;
    --text-color: #202124;
    --bg-color: #f8f9fa;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
    width: 0;
    background: transparent;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: url('https://v.6n6.cn/API/Bing/api.php?rand=true');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    animation: fadeIn 1s ease-out;
    transition: background-image 1s ease-in-out;
    margin: 0;
    padding: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-section {
    padding: 7rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .hero-section {
        padding-bottom: 60px;
    }
}

.profile-card {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: all 0.5s ease;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
    backdrop-filter: blur(5px);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.profile-header {
    background: linear-gradient(120deg, rgba(26, 115, 232, 0.8), rgba(66, 133, 244, 0.8));
    color: white;
    padding: 2rem 1.5rem;
    position: relative;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.avatar:hover img {
    transform: scale(1.1);
}

.profile-content {
    padding: 1.5rem;
}

.profile-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.5s forwards;
}

.profile-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.7s forwards;
}

.profile-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.9s forwards;
}

#yiyan-content {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    color: #333333;
    display: block;
    margin-bottom: 0.5rem;
}

#yiyan-from {
    font-size: 0.9rem;
    color: #666;
    text-align: right;
    display: block;
    padding-right: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color);
}

.btn-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.1s forwards;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-custom:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white !important;
    text-decoration: none;
}

.btn-custom:active, .btn-custom:focus {
    color: white;
    text-decoration: none;
}

.btn-custom:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transition: left 0.7s ease;
}

.btn-custom:hover:before {
    left: 100%;
}

footer {
    background-color: rgba(85, 85, 85, 0.2);
    padding: 0.8rem 0;
    margin-top: auto;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.3s forwards;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

footer:hover {
    background-color: rgba(85, 85, 85, 0.3);
}

footer p {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

@media (max-width: 768px) {
    .profile-header {
        padding: 2rem 1.5rem;
    }
    .avatar {
        width: 120px;
        height: 120px;
    }
    .profile-title {
        font-size: 2rem;
    }
    .profile-subtitle {
        font-size: 1.1rem;
    }
}
