/* 字体颜色 */
a.nav-link {
    float: left;
    width: 145px;
    text-decoration: none;
    font-family: '宋体';
    line-height: 20px;
}

/* 网页背景颜色 */
body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: #FFFFE0;
    background-image: url('/static/imgs/鲨鱼.jpg');
    background-attachment: fixed;
}


/* 顶部导航条样式 */
.navbar {
    /*固定导航条*/
    position: fixed;
    top: 0;
    left: 0;
    /* 导航条大小 */
    width: 100%;
    height: 80px;
    /* 导航条颜色 */
    background-color: #ADD8E6;
    /* 增加阴影更具立体 */
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.5);
    /* 确保导航条在最顶层 */
    z-index: 1000;
}

/* 导航条内容器样式 */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 80px;
}

/* 左侧首页区域大小 */
.nav-logo {
    flex-shrink: 0;
    white-space: nowrap;
}

/* 导航条网站名样式 */
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    font-family: '微软雅黑';
    color: #FAF0E6;
}

/* 首页设置 */
.nav-logo a > span {
    font-size: 20px;
    font-weight: bold;
    font-family: '微软雅黑';
    color: #FAF0E6;
    white-space: nowrap;
}

/* 导航条图标样式 */
.nav-logo a > img {
    width: 50px;
    height: 44px;
}

/* 导航栏菜单设置 */
.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu li:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.nav-menu a {
    display: block;
    float: none;
    width: auto;
    padding: 6px 14px;
    text-decoration: none;
    color: #EE82EE;
    font-size: 15px;
    font-weight: 500;
    font-family: '微软雅黑';
    white-space: nowrap;
}

.nav-menu a:hover {
    background-color: #FFF5EE;
    border-radius: 4px;
}

/* 右侧退出登录按钮 */
.logout {
    background-color: antiquewhite;
    border-radius: 5px;
    width: 85px;
    text-align: center;
    flex-shrink: 0;
}

.logout > a {
    display: block;
    width: 100%;
    padding: 6px 0;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}


/* 页面底部区域格式 */
footer {
    bottom: 0px;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: linear-gradient(90deg, #FFB6C1, #FF1493);
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
}


.container {
    padding-top: 85px;
    display: flex;
    flex: 1;
    width: 100%;
}

.left {
    width: 200px;
}

.right {
    width: 200px;
}

.middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.article_item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: none;
    position: relative;
}

/* 自定义渐变分割线 */
.article_item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #FF5722, transparent); /* 两头淡、中间深渐变线 */
}

/* 最后一篇移除分割线 */
.article_item:last-child::after {
    display: none;
}


.article_list {
    display: flex;
    flex-direction: column; /* 内部所有文章从上往下排 */
    gap: 30px; /* 每篇文章之间上下距离，拉开间距更好看 */
}

a {
    text-decoration: none; /* 统一全部链接都去掉下划线 */
    font-family: '宋体';
    line-height: 26px; /* 正文行高可以调大一点，阅读舒服 */
    /* 删除了 float:left; width:145px;  核心！*/
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.small {
    font-size: 11px; /* 控制文字大小，想要更小改成12px */
    line-height: 1.4;
}

/* 作者/时间等元信息链接：固定颜色，访问前后一致 */
.small a {
    color: #888;
}

.small a:visited {
    color: #888;
}

.small a:hover {
    color: #EE82EE;
}

.small svg {
    width: 16px; /* 原图是18px，同步缩小图标 */
    height: 16px;
    vertical-align: middle;
}

/* ---- 侧边栏 ---- */
.side {
    width: 220px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
}

.side-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(4px);
}

.side-title {
    font-size: 15px;
    font-weight: bold;
    color: #EE82EE;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(238, 130, 238, 0.2);
}

/* 博主卡片 */
.side-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #EE82EE;
    display: block;
    margin: 0 auto 10px;
    object-fit: cover;
}

.side-name {
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    color: #333;
    font-family: '微软雅黑';
}

.side-desc {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin: 6px 0 12px;
    line-height: 1.6;
}

.side-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #EE82EE, #DDA0DD);
    color: #fff;
    padding: 7px 0;
    border-radius: 20px;
    font-size: 13px;
    font-family: '微软雅黑';
}

.side-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.side-text {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

/* 分类列表 */
.side-list li {
    padding: 7px 0;
    border-bottom: 1px dashed #eee;
}

.side-list a {
    display: block;
    color: #555;
    font-size: 14px;
    font-family: '微软雅黑';
    line-height: 20px;
    padding: 2px 10px;
    border-radius: 6px;
    transition: all 0.25s;
}

.side-list a:hover {
    color: #EE82EE;
    background: rgba(238, 130, 238, 0.08);
}

/* 选中的分类/标签高亮 */
.side-list a.side-active {
    color: #fff;
    background: linear-gradient(135deg, #EE82EE, #DDA0DD);
}

.side-empty {
    color: #bbb;
    font-size: 13px;
    line-height: 1.8;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cloud-tag {
    display: inline-block;
    background: #e8f7ff;
    color: #4a9fd4;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: '微软雅黑';
}

.cloud-tag:hover {
    background: #EE82EE;
    color: #fff;
    transform: translateY(-2px);
}

.cloud-tag.cloud-active {
    background: linear-gradient(135deg, #EE82EE, #DDA0DD);
    color: #fff;
}

/* 筛选状态条 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #666;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    flex-wrap: wrap;
}

.filter-label {
    color: #EE82EE;
    font-weight: bold;
}

.filter-bar b {
    color: #EE82EE;
}

.filter-clear {
    margin-left: auto;
    color: #999;
    font-size: 12px;
    text-decoration: none;
    font-family: '微软雅黑';
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px dashed #ccc;
    transition: all 0.25s;
}

.filter-clear:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

/* 文章列表增强 */
.article_item h5 a {
    font-size: 18px;
    color: #333;
    font-family: '微软雅黑';
    line-height: 30px;
}

.article_item h5 a:hover {
    color: #EE82EE;
}

.article-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    vertical-align: middle;
    border: 2px solid #EE82EE;
}

.article-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    border: 2px dashed #ddd;
}

/* 响应式：窄屏隐藏侧栏 */
@media screen and (max-width: 860px) {
    .left,
    .right {
        display: none;
    }
}
/* 分类/标签数量角标 */
.side-count {
    float: right;
    background: #f0e6f6;
    color: #b06ad4;
    border-radius: 10px;
    font-size: 11px;
    padding: 1px 8px;
    margin-top: 2px;
}

.cloud-count {
    background: #f0e6f6;
    color: #b06ad4;
    border-radius: 8px;
    font-size: 10px;
    padding: 0 6px;
    margin-left: 4px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.pagination a {
    padding: 6px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #EE82EE, #ADD8E6);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pagination a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 130, 238, 0.35);
}

.page-info {
    font-size: 13px;
    color: #999;
}
