/*
 * site-logo.css
 * 作用：博客名称和logo相关样式，包括 .site-name、#logo、.description 等
 */

/* 站点名称容器 */
.site-name {
    /* 保持原有样式，如果需要可以在这里添加额外样式 */
}

/* Logo居中显示 */
.site-name.logo-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.site-name.logo-center #logo {
    justify-content: center;
}

.site-name.logo-center .description {
    text-align: center;
}

/* 站点名称标题 */
.site-name h1 {
    padding: 0;
    margin: 0;
}

/* 博客logo链接样式 */
#logo {
    font: bold 32px/1.1 "Times New Roman", Georgia, Times, sans-serif !important;
    color: #555 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* logo中的span元素样式 */
#logo span {
    color: #777;
}

/* logo悬停效果 */
#logo:hover {
    color: #777 !important;
}

/* 博客描述文字样式 */
.description {
    margin: 3px 0 0 !important;
    color: #999 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

/* Logo图片样式 */
.site-logo-img {
    display: inline-block;
    width: 120px; /* 默认宽度，实际由style覆盖 */
    height: auto;
    max-width: 100%;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 4px;
    object-fit: contain;
    object-position: center;
}

/* 9宫格定位 */
.logo-pos-top-left    { justify-content: flex-start; align-items: flex-start; }
.logo-pos-top-center  { justify-content: center;     align-items: flex-start; }
.logo-pos-top-right   { justify-content: flex-end;   align-items: flex-start; }
.logo-pos-center-left { justify-content: flex-start; align-items: center; }
.logo-pos-center      { justify-content: center;     align-items: center; }
.logo-pos-center-right{ justify-content: flex-end;   align-items: center; }
.logo-pos-bottom-left { justify-content: flex-start; align-items: flex-end; }
.logo-pos-bottom-center{justify-content: center;     align-items: flex-end; }
.logo-pos-bottom-right{ justify-content: flex-end;   align-items: flex-end; }

.site-name[class*='logo-pos-'] {
    display: flex;
    flex-direction: column;
    min-height: 100px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #logo {
        font-size: 28px !important;
    }
    
    .description {
        font-size: 12px !important;
    }
    
    .site-logo-img {
        width: 105px;
        height: auto;
    }
}

@media (max-width: 480px) {
    #logo {
        font-size: 24px !important;
    }
    
    .description {
        font-size: 11px !important;
    }
    
    .site-logo-img {
        width: 90px;
        height: auto;
    }
} 