html, body {
    font-family: "Arial", "Microsoft YaHei", "黑体", "宋体", sans-serif;
    background-color: #FFFFFF;
    height: 100%;
    overflow: auto;
}

/* 自定义样式 */
.hero-head, .footer {
    background: linear-gradient(220.55deg, #8FFF85 0%, #39A0FF 100%); /* 顶部和底部背景色 */
}

.footer {
    background-color: #d0f0c0; /* 浅绿色背景 */
    width: 100%; /* 确保宽度占满整个屏幕 */
    padding: 0.5rem 1rem; /* 统一顶部和底部的padding */
    position: fixed; /* 固定在底部 */
    bottom: 0; /* 距离底部0，确保它紧贴底部 */
    left: 0; /* 距离左边0，确保它紧贴左边 */
}

.media-content {
    overflow: hidden; /* 防止内容溢出 */
}

/* 鼠标悬停时展开二级菜单 */
.navbar-menu:hover .navbar-dropdown {
    display: block;
}

/* 调整图片大小和居中 */
.card-image .image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* 使图片容器宽度100% */
    height: 150px; /* 设置图片容器高度 */
    overflow: hidden; /* 确保图片不会超出容器 */
}

.card-image img {
    max-width: 100%;
    height: auto; /* 保持图片比例 */
    display: block; /* 使图片居中 */
    margin: 0 auto; /* 使图片居中 */
}

/* 调整卡片内容间距 */
.card-content .media {
    margin-bottom: 0.5rem;
}

.card-content .content {
    margin-top: 0.5rem;
}

/* 调整发布日期和阅读量间距 */
.level-item {
    margin-right: 0.5rem;
}

/* 博主信息卡片居中 */
.profile-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平居中 */
    justify-content: center; /* 垂直居中 */
}

/* 博客名称和菜单样式 */
.navbar-brand .navbar-item {
    font-size: 1.5em; /* 增加博客名的字号 */
    font-weight: bold; /* 加粗博客名 */
    color: #FFFFFF; /* 设置博客名为白色 */
}

.navbar-menu {
    font-size: 1em; /* 菜单字号 */
    font-weight: 400;
}

.has-text-lighter {
    color: #bcbcbc; /* 定义一个新的更浅的灰色 */
}

.navbar-menu .navbar-item:hover,
.navbar-menu .navbar-item.is-active {
    background-color: rgba(255, 255, 255, 0.2); /* 鼠标悬停时的背景色 */
    color: #FFFFFF; /* 鼠标悬停或激活时的文字颜色 */
}

.title.is-6 {
    font-size: 0.9rem; /* 调整字体大小 */
    letter-spacing: 0.08rem; /* 增加字间距 */
}

/* 使用特殊字体 */
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
.navbar-brand .navbar-item {
    font-family: 'Lobster', cursive; /* 使用Lobster字体 */
}

/* 其他样式保持不变，只修改搜索框相关的样式 */
.navbar-end .search-input {
    border-radius: 20px; /* 圆润的搜索框 */
    padding: 10px 20px; /* 增加内边距 */
    border: 1px solid #dbdbdb; /* 添加边框 */
    width: 100%; /* 在手机端占满宽度 */
    position: relative; /* 设置相对定位 */
}

.navbar-end .search-input:focus {
    outline: none; /* 移除聚焦时的轮廓 */
}

.navbar-end .search-icon {
    position: absolute; /* 绝对定位 */
    right: 23px; /* 在手机端距离输入框右侧的距离 */
    top: 50%; /* 垂直居中 */
    transform: translateY(-50%); /* 垂直居中 */
    cursor: pointer;
    z-index: 1; /* 确保图标在输入框上方 */
}

.navbar-end .search-icon img {
    width: 16px; /* 图标宽度 */
    height: 16px; /* 图标高度 */
}

/* 媒体查询，针对手机端进行样式调整 */
@media (max-width: 768px) {
    .navbar-end .search-input {
        width: calc(100% - 40px); /* 减去图标的宽度和一些边距 */
        padding-right: 40px; /* 增加右侧内边距，为图标留出空间 */
    }

    .navbar-end .search-icon {
        right: 65px; /* 根据需要调整图标的位置 */
    }
}

/* 标签样式 */
.tag {
    margin-right: 0.3rem; /* 减少外边距 */
}

/* 分类和标题容器样式 */
.title-with-category {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    margin-bottom: 0.5rem; /* 与下方内容的间距 */
}

/* 分类背景色样式 */
.category-background {
    display: inline-block;
    padding: 0.25rem 0.75rem; /* 内边距 */
    border-radius: 5px; /* 圆润的标签 */
    background-color: #e0e0e0; /* 默认背景色，可以根据分类动态更改 */
    color: white; /* 文字颜色 */
    font-size: 0.75em; /* 字体大小 */
    margin-right: 0.5rem; /* 与标题的间距 */
    text-align: center; /* 文本居中 */
    white-space: nowrap; /* 防止文本换行 */
}

/* 标题样式 */
.title.is-5 {
    font-size: 1.25rem; /* 调整字体大小 */
    font-weight: bold; /* 加粗标题 */
    color: #333; /* 标题颜色 */
}

@keyframes spin-right {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.is-rotating {
    animation: spin-right 10s linear infinite; /* 持续时间、线性速度和无限循环 */
}
