/* ================================================== */
/* 新增: css/hologram.css (全息投影效果)               */
/* ================================================== */

.hologram-card {
    position: relative;
    overflow: hidden;
}

.hologram-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: hologram-shine 3s linear infinite;
}

@keyframes hologram-shine {
    0% { transform: translateX(-30%) translateY(-30%) rotate(0deg); }
    100% { transform: translateX(30%) translateY(30%) rotate(180deg); }
}

.hologram-avatar {
    position: relative;
}

.hologram-avatar::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(90deg, #00ffff, #ff00ff) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate-border 4s linear infinite;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 扫描效果 */
.scanning-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 255, 0.1) 50%
    );
    background-size: 100% 4px;
    animation: scan 4s linear infinite;
    pointer-events: none;
    border-radius: 50%;
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 20px; }
}

/* 全息头像大号 */
.hologram-avatar-large {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.avatar-3d {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #00ffff, #ff00ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hologram-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #00ffff;
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
    opacity: 0;
}

.hologram-ring.ring-2 {
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 玻璃效果卡片 */
.glass-effect {
    background: rgba(16, 22, 40, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* 经验网格 */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.exp-card {
    text-align: center;
    transition: all 0.3s;
}

.exp-card:hover {
    transform: translateY(-10px);
    border-color: #ff00ff;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

.exp-card i {
    font-size: 2.5rem;
    color: #00ffff;
    margin-bottom: 20px;
}

.exp-card h3 {
    color: #00ffff;
    margin-bottom: 15px;
}

.exp-card ul {
    text-align: left;
    padding-left: 20px;
}

.exp-card li {
    margin-bottom: 8px;
    color: #c0d0f0;
}

/* 徽章 */
.badge-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.badge {
    background: linear-gradient(145deg, #00ffff20, #ff00ff20);
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
}

/* 个人时间线 */
.personal-timeline {
    margin: 80px 0;
}

.personal-timeline h3 {
    text-align: center;
    color: #00ffff;
    font-size: 2rem;
    margin-bottom: 50px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #00ffff, #ff00ff);
}

.timeline-node {
    position: relative;
    margin: 50px 0;
}

.node-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 20px #00ffff;
    z-index: 2;
}

.node-content {
    width: 45%;
    padding: 20px;
    background: rgba(16, 22, 40, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
}

.timeline-node:nth-child(odd) .node-content {
    margin-left: auto;
}

.timeline-node:nth-child(even) .node-content {
    margin-right: auto;
}

.node-content h4 {
    color: #00ffff;
    margin-bottom: 10px;
}

/* 开源统计 */
.opensource-stats {
    margin: 60px 0;
    text-align: center;
}

.opensource-stats h3 {
    color: #00ffff;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    padding: 20px;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 5px;
}

.stat-label {
    color: #a0b0d0;
}

/* 全息CTA */
.hologram-cta {
    position: relative;
    overflow: hidden;
}

.hologram-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 联系卡片 */
.contact-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.contact-card {
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-card:hover {
    background: #00ffff;
    color: #0a0f1e;
    transform: translateY(-10px);
    box-shadow: 0 0 30px #00ffff;
}

.contact-card i {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.contact-card span {
    font-size: 0.8rem;
}

/* 响应式 */
@media (max-width: 900px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .node-dot {
        left: 30px;
    }
    
    .node-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
}