/* =========================================
   bs_s_myHome.css - 我的主页 页面样式
   ========================================= */

.content-wrapper {
    max-width: var(--sectionHTMLWidth); 
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeInUp 0.8s ease-out;
    color: #333;
    text-align: left;
}

.profile-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
    transition: transform 0.3s ease;
    /* 核心：平时微微晃动 */
   animation: gentle-float 5s ease-in-out infinite;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.avatar-box { flex-shrink: 0; }

.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid #ffa117;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(255, 161, 23, 0.3);
}

.profile-info { flex: 1; }

.profile-title {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.title-tags-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.profile-subtitle {
    font-size: 1.1rem;
    color: #ffa117;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-bio {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 20px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background: #f0f2f5;
    color: #444;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: default;
}

.skill-tags span:hover {
    background: #ffa117;
    color: #fff;
    transform: translateY(-2px);
}

.section-header {
    margin-bottom: 30px;
    margin-top: 30px; 
}

.section-header .iconfont {
    color: var(--primary-color);
}

.section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    border-left: 5px solid #ffa117;
    padding-left: 15px;
    margin: 0;
    display: flex;
    align-items: center;
}

.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px; 
    /* 核心：平时微微晃动 */
   animation: gentle-float 5s ease-in-out infinite;
}

.timeline-item .iconfont {
    color: var(--primary-color);
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: #ffa117;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e0e0e0;
    transition: transform 0.2s;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    background: #ff8c00;
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0; 
}

.timeline-title {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 8px 0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-date {
    font-size: 0.85rem;
    color: #999;
    font-weight: normal;
    background: #f9f9f9;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.timeline-desc {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* --- 动画定义 --- */
@keyframes gentle-float {
   0%, 100% { transform: translateY(0) rotate(0deg); }
   25% { transform: translateY(-3px) rotate(0.5deg); }
   75% { transform: translateY(3px) rotate(-0.5deg); }
}

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

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .skill-tags { justify-content: center; }
    .timeline-title { flex-direction: column; gap: 5px; }
    .timeline-date { margin-left: 0; justify-content: center; }
}