:root {
    --primary-color: #2196f3;
    --text-color: #333;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --card-radius: 16px;
    --card-padding: 1.2rem;
    --nav-height: 60px;
    --sidebar-width: 80px;
    --sidebar-expanded-width: 200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
}
.container {
    min-height: 100%;
}
body {
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    color: var(--text-color);
    position: relative;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://img.fastmirror.net/s/2025/05/02/68149771aa936.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    z-index: -1;
    transform: scale(1.1);
}

.container {
    width: 100%;
    max-width: 1200px;
    height: calc(100vh - 3rem);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.2rem;
    align-content: center;
    transform: scale(0.85);
    transform-origin: center center;
}

/* 卡片基础样式 */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
    padding: var(--card-padding);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

/* 个人信息卡片 */
.profile-card {
    grid-column: span 3;
    height: 100%;
    text-align: center;
}

.avatar-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--glass-border);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-container:hover {
    transform: rotate(360deg);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    color: #333;
}

.description {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #333;
    opacity: 0.9;
}

.blog-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.blog-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* 教育背景卡片 */
.education-card {
    grid-column: span 9;
    height: 100%;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title .material-icons {
    color: var(--primary-color);
}

.education-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.education-item {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    gap: 1rem;
}

.logos-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100px;
    transition: transform 0.3s ease;
}

.logos-row:hover {
    transform: translateY(-5px);
}

.logo-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.school-logo, .college-logo, .org-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-circle:hover .school-logo,
.logo-circle:hover .college-logo,
.logo-circle:hover .org-logo {
    transform: scale(1.05);
}

.education-details {
    flex: 1;
}

.education-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.education-details p {
    color: #333;
    opacity: 0.9;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.school-desc {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* 兴趣爱好卡片 */
.interests-card {
    grid-column: span 6;
    height: 100%;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.interest-card {
    text-align: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.interest-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.7);
}

.interest-card .material-icons {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.interest-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.preview {
    color: #666;
    font-size: 0.85rem;
}

/* 联系方式卡片 */
.contact-card {
    grid-column: span 6;
    height: 100%;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.7);
}

.contact-item .material-icons {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* 底栏卡片 */
.footer-card {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.footer-section img {
    height: 16px;
    width: auto;
}

.footer-section span {
    font-family: 'Roboto', sans-serif;
    color: #666;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.footer-section a:hover {
    color: var(--primary-color);
}

/* 兴趣爱好详情页 */
.interest-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.interest-detail.active {
    opacity: 1;
    visibility: visible;
}

.detail-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.2s ease;
}

.interest-detail.active .detail-content {
    transform: translateY(0);
    opacity: 1;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.close-button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.detail-header .material-icons {
    font-size: 2rem;
    color: var(--primary-color);
}

.detail-header h2 {
    font-size: 1.8rem;
    color: #333;
}

.detail-body {
    color: #333;
    line-height: 1.6;
    max-height: calc(80vh - 8rem);
    overflow-y: auto;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        transform: none;
        grid-template-columns: 1fr;
        gap: 1rem;
        height: auto;
    }

    .card {
        grid-column: 1 / -1;
    }

    .footer-section {
        justify-content: center;
    }

    .logos-row {
        min-height: 80px;
    }

    .logo-circle {
        width: 60px;
        height: 60px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移除动画效果 */
.card {
    animation: none;
}

.profile-card, .education-card, .interests-card, .contact-card, .footer-card {
    animation: none;
}

/* 保留悬停效果 */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

/* 保留 logo 的悬停效果 */
.logos-row:hover {
    transform: translateY(-5px);
}

.logo-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.logo-circle:hover .school-logo,
.logo-circle:hover .college-logo,
.logo-circle:hover .org-logo {
    transform: scale(1.05);
}

/* 保留弹出窗口的动画效果 */
.interest-detail {
    transition: opacity 0.2s ease;
}

.detail-content {
    transition: all 0.2s ease;
}

.interest-detail.active .detail-content {
    transform: translateY(0);
    opacity: 1;
}

/* 导航栏样式 */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-item .material-icons {
    font-size: 1.5rem;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-item.active .material-icons {
    color: var(--primary-color);
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .nav-content {
        gap: 1rem;
    }

    .nav-item span {
        display: none;
    }

    .nav-item {
        padding: 0.5rem;
    }

    .nav-item .material-icons {
        font-size: 1.8rem;
    }
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    transition: width 0.3s ease;
}

.sidebar:hover {
    width: var(--sidebar-expanded-width);
}

.sidebar-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-item.active .material-icons {
    color: var(--primary-color);
}

.sidebar-item .material-icons {
    font-size: 1.8rem;
    color: #333;
}

.sidebar-item span {
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .sidebar-item span {
    opacity: 1;
}

/* 更新文字颜色 */
.name, .description, .section-title, 
.education-details h3, .education-details p,
.org-list li, .interest-card h3, .interest-list li {
    color: #333;
    text-shadow: none;
}
@media (min-width: 769px) {
    body {
        overflow: hidden;
    }
}
/* 移动端适配 */
@media (max-width: 768px) {
    html, body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
    }

    body {
        padding: 0;
        display: block;
    }

    .container {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 1rem;
        padding-bottom: 60px;
        margin: 0;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .card {
        width: 100%;
        margin: 0;
    }

    .profile-card {
        order: 1;
    }

    .education-card {
        order: 2;
    }

    .interests-card {
        order: 3;
    }

    .contact-card {
        order: 4;
    }

    .footer-card {
        order: 5;
        margin-top: auto;
    }

    .interest-detail {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detail-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }
} 