/* About 页面样式 */
/* 作者: Bill (cursor.claude-3-5-sonnet-20241022) */
/* 24/12/31:16:30 根据图片重新设计about页面样式 */

/* 全局重置 */
* {
    box-sizing: border-box;
}

/* 页面基础样式 */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
    padding: 0;
}

/* 主要内容区域 */
.about-main {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 卡片容器样式 */
.about-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-card:hover::before {
    opacity: 1;
}

/* 卡片标题区域 */
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.about-card:hover .card-header::after {
    width: 100px;
}

.card-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.about-card:hover .card-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    letter-spacing: 0.5px;
}

/* 博客介绍样式 */
.blog-intro {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.8;
}

.blog-intro p {
    margin-bottom: 18px;
    transition: color 0.3s ease;
}

.blog-intro p:hover {
    color: #2c3e50;
}

/* 博主信息新样式 */
.author-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.author-main-info {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
}

/* 左侧头像和姓名区域 */
.author-header-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 160px;
    flex-shrink: 0;
}

.author-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

/* 右侧描述区域 */
.author-description-row {
    flex: 2;
    padding: 0 0 0 15px;
    border-left: 2px solid #f1f5f9;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.author-name-section {
    text-align: center;
    margin: 15px 0 0 0;
    width: 100%;
}

.author-avatar {
    flex-shrink: 0;
    margin-bottom: 20px;
    margin-left: 20px;
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
}

/* 头像加载状态 */
.author-avatar img.loading {
    opacity: 0.3;
    transform: scale(0.95);
    border-color: #667eea;
    animation: avatarPulse 1.5s ease-in-out infinite;
}

.author-avatar img.loaded {
    opacity: 1;
    transform: scale(1);
    border-color: #e2e8f0;
}

.author-avatar img.error {
    opacity: 0.8;
    transform: scale(1);
    border-color: #fbbf24;
    filter: grayscale(20%);
}

/* 头像加载动画 */
@keyframes avatarPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
        border-color: #667eea;
    }
    50% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        border-color: #5a6fd8;
    }
}

.author-avatar img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.author-intro-text {
    flex: 1;
}

.author-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.author-title {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.author-desc {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1rem;
    text-align: left;
    margin: 0;
    padding: 0;
}

.author-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.author-tags span {
    background-color: #e6f0ff;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-tags span i {
    font-size: 0.9em;
}

.author-long-description {
    margin-top: 30px;
    line-height: 1.8;
    color: #4a5568;
}

.description-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    margin-top: 25px;
}

/* 专业技能样式 */
.professional-skills {
    margin-top: 25px;
    padding: 25px 0 0 0;
    border-top: 1px solid #f1f5f9;
}

.professional-skills .skills-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.professional-skills .skills-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

.professional-skills .skill-item {
    margin-bottom: 0;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.professional-skills .skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    background: #ffffff;
}

.professional-skills .skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 600;
}

.professional-skills .skill-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.professional-skills .skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.professional-skills .skill-progress::after {
    content: '';
    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;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 社交链接新样式 */
.social-links-new {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    padding: 25px 0 0 0;
    border-top: 1px solid #f1f5f9;
    justify-content: center;
}

.social-link-new {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #64748b;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 25px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link-new:hover::before {
    left: 100%;
}

.social-link-new:hover {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.social-link-new i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.social-link-new:hover i {
    transform: rotate(10deg) scale(1.1);
}

/* 旧的社交链接样式 - 移除 */
/*
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-start;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #667eea;
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}
*/

/* 时间线样式 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 25px;
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: #667eea;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    background: #764ba2;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}

.timeline-item:hover {
    padding-left: 30px;
}

.timeline-date {
    font-weight: 600;
    color: #667eea;
    font-size: 0.95rem;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.timeline-item:hover .timeline-date {
    color: #764ba2;
}

.timeline-content {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.timeline-item:hover .timeline-content {
    color: #2c3e50;
}

/* 联系方式样式 */
.contact-info {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.about-card:hover .contact-info::before {
    transform: scale(1);
}

.contact-email {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
}

.contact-email:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    color: #5a6fd8;
    border-color: #667eea;
}

.contact-email i {
    transition: transform 0.3s ease;
}

.contact-email:hover i {
    transform: rotate(10deg) scale(1.1);
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card {
    animation: fadeInUp 0.6s ease forwards;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }
.about-card:nth-child(4) { animation-delay: 0.4s; }

/* 响应式设计 */
@media (max-width: 768px) {
    .about-main {
        padding: 0 15px;
        margin: 20px auto;
    }

    .about-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .author-content {
        gap: 20px;
    }

    .author-main-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .author-header-section {
        min-width: auto;
        width: 100%;
        align-items: center;
    }

    .author-description-row {
        border-left: none;
        border-top: 2px solid #f1f5f9;
        padding: 20px 0 0 0;
        min-height: auto;
        text-align: center;
    }

    .author-avatar-container {
        max-width: 100%;
        align-items: center;
    }

    .author-avatar {
        margin-left: 0;
        margin-bottom: 15px;
    }

    .author-avatar img {
        width: 100px;
        height: 100px;
    }

    .author-name {
        font-size: 1.3rem;
    }

    .author-title {
        font-size: 0.95rem;
    }

    .author-desc {
        padding: 0 5px;
        font-size: 0.95rem;
        text-align: center;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline-item {
        padding-left: 20px;
    }

    .skills-list {
        padding: 0 10px;
    }

    .professional-skills .skill-item {
        padding: 12px;
    }

    .social-links-new {
        gap: 10px;
        justify-content: center;
    }

    .social-link-new {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .about-main {
        padding: 0 10px;
        margin: 15px auto;
    }

    .about-card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .card-header {
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .author-avatar img {
        width: 80px;
        height: 80px;
    }

    .timeline::before {
        left: 12px;
        width: 2px;
    }

    .timeline-item::before {
        left: -6px;
        width: 16px;
        height: 16px;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-item {
        padding-left: 15px;
    }

    .contact-email {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a202c;
        color: #e2e8f0;
    }

    .about-card {
        background: #2d3748;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .card-title {
        color: #f7fafc;
    }

    .blog-intro {
        color: #cbd5e0;
    }

    .author-name {
        color: #f7fafc;
    }

    .author-desc {
        color: #cbd5e0;
    }

    .timeline-content {
        color: #cbd5e0;
    }

    .author-tags span {
        background-color: #4a5568;
        color: #e2e8f0;
    }

    .professional-skills .skills-title {
        color: #f7fafc;
    }

    .contact-info {
        background: linear-gradient(135deg, #2d3748, #4a5568);
    }

    .contact-email {
        background: #1a202c;
        color: #667eea;
    }

    .social-link-new {
        background: #1a202c;
        border-color: rgba(255, 255, 255, 0.1);
        color: #cbd5e0;
    }

    .social-link-new:hover {
        background-color: #667eea;
        color: white;
        border-color: #667eea;
    }
} 