/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 10vh;
    padding: 1px;
    position: relative;
    overflow-x: hidden;
}

/* 背景图片样式 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 2;
    transition: opacity 0.5s ease;
}

/* 容器样式 */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px;
}

/* 主卡片样式 */
.main-card {
    text-align: center;
    margin-bottom: 0px;
    animation: fadeIn 1s ease;
}

/* 头像区域 */
.avatar-section {
    margin-bottom: 2px;
}

.avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 5px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar:hover {
    transform: scale(1.05);
}

.avatar-frame {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.15);
    animation: pulse 2s infinite;
}

/* 名字和标题 */
.name {
    font-size: 2rem;
    font-weight: 20;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #00dbde, #fc00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 20;
}

/* 卡片网格布局 - 更紧凑的2x2布局 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
    max-width: 30px;
    margin-left: auto;
    margin-right: auto;
}

/* 毛玻璃卡片样式 - 更小尺寸 */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(100px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.01);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.small-card {
    padding: 20px;
    height: 100px;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 卡片图标 - 更小 */
.card-icon {
    font-size: 1.8rem;
    margin-bottom: 0px;
    color: #60a5fa;
    text-align: center;
}

/* 卡片标题 - 更小 */
.card-title {
    font-size: 1.1rem;
    margin-bottom: 0px;
    color: #f1f5f9;
    font-weight: 600;
    text-align: center;
}

/* 卡片内容 - 更紧凑 */
.card-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cbd5e1;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-content {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    padding: 0 5px;
}

.card-author {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
    text-align: right;
}

.compact-author {
    font-size: 0.75rem;
    margin-top: 5px;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px 15px;
    color: #94a3b8;
    font-size: 0.85rem;
    border-top: 10px solid rgba(255, 255, 255, 0.08);
    margin-top: 0px;
}

.update-time {
    font-size: 0.75rem;
    margin-top: 0px;
    color: #64748b;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.5;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 400px;
    }
    
    .small-card {
        height: 160px;
        padding: 18px;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .avatar-container {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 8px;
    }
    
    .cards-grid {
        gap: 12px;
    }
    
    .small-card {
        height: 150px;
        padding: 15px;
    }
    
    .name {
        font-size: 1.6rem;
    }
    
    .avatar-container {
        width: 90px;
        height: 90px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .compact-content {
        font-size: 0.85rem;
    }
}

/* 小屏幕优化 */
@media (max-width: 360px) {
    .cards-grid {
        gap: 10px;
    }
    
    .small-card {
        height: 140px;
        padding: 12px;
    }
    
    .card-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .compact-content {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}