/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f5ff 0%, #e6f7ff 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
}

/* 头像区域 */
.avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

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

.avatar-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
    position: relative;
    overflow: hidden;
    border: 4px solid white;
}

.avatar-frame::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(30deg);
    animation: shine 3s infinite linear;
}

.avatar {
    width: 92%;
    height: 92%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* 头像图片样式 */
.avatar-img {
    width: 120%;
    height: 120%;
    object-fit: cover;
}

/* 链接图标样式 */
.link-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

@keyframes shine {
    0% { transform: rotate(30deg) translateX(-100%); }
    100% { transform: rotate(30deg) translateX(100%); }
}

header {
    text-align: center;
    padding: 0 20px 30px;
}

.logo {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.1rem;
    color: #5a6b7c;
    max-width: 600px;
    margin: 0 auto 25px;
}

.user-info {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.info-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 25px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.15);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.25);
    border-color: rgba(52, 152, 219, 0.3);
}

.search-box i {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-size: 1.1rem;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.category-btn:hover, .category-btn.active {
    background: #3498db;
    color: white;
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}

.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.link-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.2);
}

.link-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 12px rgba(52, 152, 219, 0.3);
    overflow: hidden;
}

.link-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
}

.link-desc {
    color: #5a6b7c;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.7;
}

.link-url {
    display: inline-block;
    color: #3498db;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.link-url:hover {
    color: #2980b9;
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: #5a6b7c;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .user-info {
        flex-wrap: wrap;
    }
    
    .links-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .avatar-container {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.9rem;
    }
    
    .categories {
        gap: 8px;
    }
    
    .category-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .links-container {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .avatar-container {
        width: 90px;
        height: 90px;
    }
}

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

.link-card {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
.link-card:nth-child(5) { animation-delay: 0.5s; }
.link-card:nth-child(6) { animation-delay: 0.6s; }
.link-card:nth-child(7) { animation-delay: 0.7s; }
.link-card:nth-child(8) { animation-delay: 0.8s; }
.link-card:nth-child(9) { animation-delay: 0.9s; }
