/* ==================== 全局样式 ==================== */
body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f5f5;
}

/* ==================== 用户信息展示区样式 ==================== */
.weibo-user-info-section {
    position: relative;
    text-align: center;
    padding: 0 0 10px 0;
    background: #fff;
    overflow: hidden;
}

.weibo-cover-image {
    width: 100%;
    height: 300px;
    position: relative;
}

.weibo-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== 头部内容容器 ==================== */
.weibo-header-content {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end; /* 将内容靠右对齐 */
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==================== 标题容器样式 ==================== */
.weibo-site-name-container {
    position: relative;
    z-index: 2;
    margin-right: 20px; /* 增加与头像的间距 */
    text-align: right; /* 文本右对齐 */
    max-width: 60%; /* 限制标题最大宽度 */
}

.weibo-site-name {
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    display: inline-block;
    word-break: break-word;
}

/* ==================== 用户信息展示区样式 - 使用专属命名空间 ==================== */
.weibo-profile-info {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 5%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 3;
    margin-bottom: -10px; /* 使头像底部超出封面10px */
}

/* 微博专属头像容器 */
.weibo-profile-info .weibo-avatar {
    width: 100%;
    height: 100%;
    display: block;
}

/* 微博专属头像图片 - 避免与主题 .avatar 冲突 */
.weibo-profile-info .weibo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5%;
    border: 2px solid #fff;
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

/* 鼠标悬停时放大头像并改变边框颜色 */
.weibo-profile-info .weibo-avatar img:hover {
    transform: scale(1.1);
    border-color: #007bff;
}

/* ==================== 内容区域样式 ==================== */
.weibo-content-section {
    padding: 8px 0;
    background: #fff;
}

.weibo-section-title {
    text-align: left;
    font-size: 16px;
    color: #000;
    padding-left: 10px;
}

/* ==================== 移动端样式调整 ==================== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .weibo-cover-image {
        height: 200px;
    }

    .weibo-profile-info {
        width: 80px;
        height: 80px;
        margin-bottom: -5px;
    }

    .weibo-site-name {
        font-size: 1.5em;
    }

    .weibo-header-content {
        padding: 0 10px;
    }

    .weibo-section-title {
        font-size: 14px;
    }
    
    .weibo-site-name-container {
        max-width: 50%; /* 移动端减小标题最大宽度 */
    }
}