/* 关于页面样式 */

.about-content {
    max-width: 900px;
    animation: fadeIn 0.6s ease;
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--btn-bg);
    border: 2px solid var(--btn-border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 15px var(--shadow-accent);
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-glow);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn:hover::before {
    width: 300px;
    height: 300px;
}

.back-btn:hover {
    background: var(--btn-bg-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--shadow-accent);
    border-color: var(--border-hover);
}

/* 个人信息卡片 */
.profile-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px var(--shadow-accent);
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease 0.2s backwards;
    position: relative;
    overflow: hidden;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 个人信息头部 */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--glass-border);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(6, 182, 212, 0.6);
    box-shadow: 0 8px 25px var(--shadow-accent), 0 0 0 0 rgba(6, 182, 212, 0.4);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
}

.profile-avatar:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 12px 35px var(--shadow-accent), 0 0 20px var(--shadow-accent);
    border-color: rgba(14, 165, 233, 0.8);
}

.profile-info {
    flex: 1;
    position: relative;
    z-index: 2;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.profile-name {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px var(--shadow-color);
}

.profile-title,
.profile-year {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-secondary);
    margin: 8px 0;
}

/* 章节标题 */
.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    position: relative;
    z-index: 2;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* 个人简介 */
.profile-bio {
    margin-bottom: 35px;
}

.bio-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    text-align: justify;
    position: relative;
    z-index: 2;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* 联系方式 */
.contact-section {
    margin-bottom: 35px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--glass-bg-medium);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.contact-label {
    font-size: 13px;
    color: var(--text-tertiary);
}

.contact-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 兴趣领域 */
.interests-section {
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.interest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.interest-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.interest-card:hover::before {
    width: 200px;
    height: 200px;
}

.interest-card:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(14, 165, 233, 0.1));
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px var(--shadow-accent);
    border-color: var(--border-hover);
}

.interest-card span:last-child {
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.interest-card .iconify {
    position: relative;
    z-index: 1;
}

/* 社交链接 */
.social-section {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-link.github {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.2), rgba(88, 166, 255, 0.1));
}

.social-link.bilibili {
    background: linear-gradient(135deg, rgba(251, 114, 153, 0.2), rgba(251, 114, 153, 0.1));
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-link.github:hover {
    border-color: rgba(88, 166, 255, 0.6);
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.3), rgba(88, 166, 255, 0.15));
}

.social-link.bilibili:hover {
    border-color: rgba(251, 114, 153, 0.6);
    background: linear-gradient(135deg, rgba(251, 114, 153, 0.3), rgba(251, 114, 153, 0.15));
}

/* 座右铭卡片 */
.motto-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 40px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(96, 165, 250, 0.3));
    border: 2px solid rgba(96, 165, 250, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.motto-icon {
    color: var(--text-tertiary);
}

.motto-text {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 4px;
    text-shadow: 0 2px 15px var(--shadow-color);
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .about-content {
        max-width: 800px;
        padding: 0 20px;
    }
    
    .profile-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .about-content {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 26px;
    }
    
    .profile-title,
    .profile-year {
        justify-content: center;
        font-size: 15px;
    }
    
    .section-heading {
        font-size: 20px;
    }
    
    .bio-text {
        font-size: 15px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .interest-card {
        padding: 15px;
    }
    
    .social-links {
        flex-direction: column;
        width: 100%;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
    }
    
    .motto-card {
        padding: 20px 15px;
        gap: 15px;
    }
    
    .motto-text {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .motto-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    .about-content {
        padding: 0 10px;
    }
    
    .back-btn {
        padding: 8px 15px;
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .profile-card {
        padding: 15px;
        border-radius: 16px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .profile-title,
    .profile-year {
        font-size: 14px;
    }
    
    .section-heading {
        font-size: 18px;
    }
    
    .bio-text {
        font-size: 14px;
    }
    
    .contact-item {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .contact-value {
        font-size: 14px;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    .interest-card {
        padding: 12px;
    }
    
    .motto-card {
        padding: 15px 10px;
    }
    
    .motto-text {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

@media (max-width: 360px) {
    .profile-name {
        font-size: 20px;
    }
    
    .motto-text {
        font-size: 16px;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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