/* 容器布局 */
.about-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 84px);
}

/* 右侧内容区 */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .profile-section {
        margin-bottom: 1rem;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
}

/* 小屏幕适配 */
@media (max-width: 480px) {
    .about-container {
        padding: 0.8rem;
        gap: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-card {
        padding: 1rem;
    }
    
    .contact-item {
        padding: 0.8rem;
    }
    
    .contact-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .timeline-desc {
        font-size: 0.9rem;
    }
}

/* 玻璃拟态效果 */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .glass-card {
    background: rgba(15, 23, 42, 0.3);
}

/* 个人信息卡片 */
.profile-section {
    position: relative;
    height: fit-content;
}

.profile-avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    object-fit: cover;
}

.avatar-glow {
    position: absolute;
    inset: -5px;
    background: linear-gradient(45deg, var(--accent), var(--primary));
    border-radius: 35px;
    opacity: 0.5;
    filter: blur(20px);
    z-index: -1;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-title {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.profile-bio {
    color: var(--text-dim);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 2rem;
}

/* 联系信息样式 */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(14, 165, 233, 0.1);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    font-size: 1.2rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.contact-value {
    color: var(--text);
}

/* 技能标题样式 */
.skills-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.skills-title i {
    font-size: 1.5rem;
    color: #0ea5e9;
}

/* 技能网格布局 */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* 技能样式 */
.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

.skill-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

/* 暗色模式适配 */
[data-theme="dark"] .skill-card {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .skill-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-level {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(14, 165, 233, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* 暗色模式技能标签 */
[data-theme="dark"] .skill-level {
    background: rgba(14, 165, 233, 0.1);
}

/* 进度条样式 */
.skill-progress {
    position: relative;
}

.progress-track {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

/* 暗色模式进度条 */
[data-theme="dark"] .progress-track {
    background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 时间线布局样式 */
.timeline-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.timeline-block {
    position: relative;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent,
        var(--accent) 10%,
        var(--accent) 90%,
        transparent
    );
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-top: 0;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 1.5rem;
    transform: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.timeline-content {
    padding: 1.5rem;
    margin-left: 0.5rem;
    margin-top: 0;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(5px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
}

.timeline-title i {
    color: var(--accent);
    font-size: 1rem;
    opacity: 0.8;
}

.me-2 {
    margin-right: 0.5rem;
}

.timeline-period {
    font-size: 0.9rem;
    color: var(--accent);
    background: rgba(14, 165, 233, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.timeline-subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .timeline::before {
        left: 7px;
    }
    
    .timeline-item {
        padding-left: 2rem;
        padding-top: 0;
    }
    
    .timeline-marker {
        left: 0;
        top: 1.5rem;
        transform: none;
    }
    
    .timeline-content {
        margin-left: 0.5rem;
        margin-top: 0;
    }

    .timeline-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-period {
        align-self: flex-start;
    }
}

/* 动画 */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 添加 AOS 动画元素的间距 */
[data-aos^=fade][data-aos^=fade].aos-animate {
    margin-top: 10px;
}

/* 为了确保第一个元素不会有多余的顶部间距 */
.content-section > div:first-child[data-aos^=fade][data-aos^=fade].aos-animate {
    margin-top: 0;
}

/* 图标悬停效果 */
.timeline-content:hover .timeline-title i {
    transform: scale(1.2);
    opacity: 1;
}

/* 图标动画 */
.timeline-title i {
    transition: all 0.3s ease;
}