/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    color: #ffffff;
}

/* 主容器 */
.container {
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

/* 底部大文字效果 */
.background-text {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 120px;
    font-weight: 900;
    color: rgba(255, 215, 0, 0.15);
    letter-spacing: 8px;
    white-space: nowrap;
    z-index: 0;
    font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
    animation: floatText 6s ease-in-out infinite, fadeIn 1.5s ease-out;
}

@keyframes floatText {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 顶部加号图标 */
.top-icon {
    text-align: center;
    margin-bottom: 20px;
}

.plus-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plus-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 个人资料卡片 */
.profile-card {
    background: #2a2a2a;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    animation: slideInUp 0.8s ease-out 0.2s both, cardGlow 3s ease-in-out infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 20px 60px rgba(255, 215, 0, 0.1);
    }
}

/* 顶部个人信息区域 */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* 头像包装器 */
.avatar-wrapper {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: avatarPop 0.6s ease-out 0.4s both;
    cursor: pointer;
}

.profile-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

@keyframes avatarPop {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* 个人信息详情 */
.profile-details {
    flex: 1;
    text-align: center;
    width: 100%;
}

.profile-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
    text-align: center;
    animation: fadeInLeft 0.8s ease-out 0.6s both;
    position: relative;
}

.profile-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    /* background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.8), transparent); */
    animation: underlineExpand 1s ease-out 1.2s forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes underlineExpand {
    to {
        width: 80%;
    }
}

.profile-title {
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
    animation: fadeInRight 0.8s ease-out 0.8s both;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-text {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 50%, #ff6b9d 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    opacity: 0;
}

.title-text::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 16px;
    background: linear-gradient(135deg, #ffd700, #ff6b9d);
    animation: cursorBlink 1s infinite;
    opacity: 0;
}

.title-text.typing::after {
    opacity: 1;
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes textShine {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
    }
    50% {
        background-position: 100% 50%;
        filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.location-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 13px;
    color: #d0d0d0;
    animation: fadeInUp 0.6s ease-out 1s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-icon {
    font-size: 14px;
}

.status-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #28c76f;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28c76f;
    box-shadow: 0 0 10px rgba(40, 199, 111, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* 操作链接 */
.profile-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.action-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.link-icon,
.download-icon {
    font-size: 16px;
}

/* 联系信息 */
.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    animation: fadeInScale 0.6s ease-out 1.2s both;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-item:hover::before {
    opacity: 1;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.email-icon {
    font-size: 16px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-item:hover {
    color: #ffffff;
}

.twitter-icon,
.linkedin-icon {
    font-size: 18px;
}

/* About Me 部分 */
.about-section {
    margin-bottom: 0;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.about-text {
    font-size: 14px;
    line-height: 1.6;
    color: #c0c0c0;
    text-align: center;
    margin: 0;
    animation: fadeInUp 0.8s ease-out 1.4s both;
    position: relative;
}

.about-text::before {
    content: '"';
    font-size: 32px;
    color: rgba(255, 215, 0, 0.3);
    position: absolute;
    left: -10px;
    top: -10px;
    animation: quoteFadeIn 1s ease-out 1.6s both;
}

.about-text::after {
    content: '"';
    font-size: 32px;
    color: rgba(255, 215, 0, 0.3);
    position: absolute;
    right: -10px;
    bottom: -10px;
    animation: quoteFadeIn 1s ease-out 1.6s both;
}

@keyframes quoteFadeIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* 项目部分 */
.projects-section {
    margin-top: 40px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #ffffff;
    gap: 12px;
}

.arrow-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.view-all-link:hover .arrow-icon {
    transform: translateX(4px);
}

/* 项目网格 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* 项目卡片 */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1a1a1a;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-info {
    padding: 16px;
    position: relative;
}

.project-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.project-type {
    font-size: 14px;
    color: #b0b0b0;
}

.project-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 20px;
    color: #d0d0d0;
    transition: all 0.3s ease;
}

.project-card:hover .project-arrow {
    color: #ffffff;
    transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-card {
        padding: 20px;
    }

    .profile-header {
        flex-direction: column;
    }

    .profile-actions {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .contact-item {
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .profile-name {
        font-size: 24px;
    }
    
    .background-text {
        font-size: 80px;
        bottom: -10px;
        letter-spacing: 4px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .profile-card {
        padding: 16px;
        border-radius: 12px;
    }

    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-details {
        text-align: center;
    }
    
    .contact-info {
        align-items: center;
        justify-content: center;
    }
    
    .contact-item {
        text-align: center;
        justify-content: center;
    }
    
    .background-text {
        font-size: 60px;
        bottom: -5px;
        letter-spacing: 2px;
    }
}

