:root {
    /* 核心配色：你可以修改这里的颜色代码来换肤 */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-hover: #ffffff;
    --text-main: #333333;
    --text-sub: #666666;
    --primary-color: #764ba2;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-main);
    background: #f0f2f5; /* 备用背景色 */
    min-height: 100vh;
}

/* --- 动态全屏背景 --- */
.background {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--bg-gradient);
    z-index: -1; /* 放在最底层 */
}

/* --- 布局容器 --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- 个人资料头部 --- */
.profile {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2); /* 文字阴影增加可读性 */
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* 圆形头像 */
    border: 4px solid rgba(255,255,255,0.3); /* 半透明边框 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    object-fit: cover; /* 防止图片变形 */
}

.profile h1 {
    margin: 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.profile .bio {
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
    font-size: 1.1rem;
}

/* --- 社交图标 --- */
.social-links {
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 1.6rem;
    margin: 0 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    opacity: 0.8;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    opacity: 1;
}

/* --- 分类标题 --- */
.category {
    margin-bottom: 35px;
}

.category h2 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
}

/* --- 网格布局 --- */
.link-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* 自适应列宽 */
    gap: 15px;
}

/* --- 卡片样式 (玻璃拟态核心) --- */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* 玻璃效果 */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card:hover {
    background: var(--card-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    border-color: white;
}

.card-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
}

.card-info {
    flex: 1;
    overflow: hidden; /* 防止文字溢出 */
}

.card-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.card-info p {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-sub);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* --- 底部版权 --- */
footer {
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-top: 50px;
    font-size: 0.9rem;
    padding-bottom: 20px;
}

/* --- 移动端适配 --- */
@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }
    
    .link-items {
        grid-template-columns: 1fr; /* 手机端强制单列，防止卡片太窄 */
    }
    
    .card {
        padding: 12px; /* 手机端稍微减小内边距 */
    }
}