/* ============================================
   通用组件样式（建立在 V3-1 设计 token 之上）
   ============================================ */

/* S1-3 首字文字头像：无 logo/封面图时以名称首字符 + 主色渐变块占位
   （对齐产品列表 V0-3 的 .text-avatar 实现，供全站列表/详情/侧栏推荐位复用） */
.text-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    /* 容器无固定高度（如 .shcoolbox .bigimg 仅 max-width）时保持正方形 */
    aspect-ratio: 1 / 1;
    font-size: 36px;
    font-weight: 600;
    color: var(--color-bg-white, #ffffff);
    background: linear-gradient(135deg, var(--color-primary, #168FFF), var(--color-primary-dark, #0D7AD4));
    border-radius: 8px;
    overflow: hidden;
}
