/* --- 全局背景 --- */
body {
    background-color: #f4f6f9; /* 高级灰蓝底色 */
}

/* --- Hero 区域美化 --- */
.creator-hero-lite {
    position: relative;
    height: 140px; /* 固定高度，不占太多屏 */
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: 0; filter: blur(10px); opacity: 0.3; transform: scale(1.1);
}

.hero-content {
    position: relative; z-index: 2;
    display: flex; justify-content: space-between; align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-size: 24px; font-weight: 800; color: #333; margin: 0;
    display: flex; align-items: center; gap: 10px;
}
.hero-text h1 i { color: #6c5ce7; } /* 紫色图标 */
.hero-text span {
    font-size: 13px; color: #666; margin-top: 5px; display: block; letter-spacing: 1px;
}

/* --- 分类标题 --- */
.cat-separator {
    display: flex; align-items: center; gap: 10px;
    margin: 30px 0 15px; padding-left: 5px;
}
.cat-separator h2 {
    font-size: 16px; font-weight: 700; color: #2d3436; margin: 0;
}
.cat-badge {
    background: #e0e6ed; color: #636e72; font-size: 11px; 
    padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.cat-line {
    flex: 1; height: 1px; background: #e9ecef;
}

/* --- Grid 布局 (核心) --- */
.links-grid {
    display: grid;
    /* PC端：自适应，最小宽180px (约5-6列) */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding-bottom: 10px;
}

/* --- 卡片设计 (Petite Card) --- */
.mini-card {
    background: #fff;
    border-radius: 16px;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); /* 极淡阴影 */
    position: relative;
    overflow: hidden;
}

/* 悬停浮动 */
.mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.15); /* 紫色系光晕 */
    border-color: rgba(108, 92, 231, 0.2);
}

/* 头像容器 */
.card-avatar {
    width: 52px; height: 52px;
    margin-bottom: 10px;
    position: relative;
    flex-shrink: 0;
}

.card-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.mini-card:hover .card-avatar img {
    transform: rotate(5deg) scale(1.05);
    border-color: #fff;
}

/* 名字区域 */
.card-name-row {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    width: 100%; margin-bottom: 4px;
}

.card-name {
    font-size: 14px; font-weight: 700; color: #2d3436;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 85%;
}

.verified-badge {
    width: 14px; height: 14px; flex-shrink: 0;
}

/* 描述文字 */
.card-desc {
    font-size: 11px; color: #95a5a6;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 强制只显示1行，保持页面短 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 5px;
    opacity: 0.8;
}

/* --- 手机端适配 (重点) --- */
@media (max-width: 768px) {
    .creator-hero-lite {
        height: auto; padding: 20px 0;
        text-align: center;
    }
    .hero-content { flex-direction: column; gap: 15px; }
    .hero-extra { display: none; } /* 手机端隐藏右侧广告，省空间 */
    
    .links-grid {
        /* 【核心】手机端强制 3 列 */
        grid-template-columns: repeat(3, 1fr); 
        gap: 8px; /* 间距缩小，防止挤出屏幕 */
    }

    .mini-card {
        padding: 12px 6px; /* 减小内边距 */
        border-radius: 12px;
    }

    .card-avatar {
        width: 44px; height: 44px; /* 头像缩小一点适配3列 */
        margin-bottom: 6px;
    }

    .card-name {
        font-size: 12px;
    }
    
    /* 3列布局空间紧凑，名字太长截断 */
    .card-name { max-width: 90%; }
    
    /* 手机端可选择隐藏描述，或者保留一行 */
    .card-desc {
        font-size: 10px;
        -webkit-line-clamp: 1;
    }
}