/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}
a:hover {
    color: #cc0000;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
ul, li {
    list-style: none;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部 */
.header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 15px 0;
    margin-bottom: 20px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo img {
    height: 50px;
}
.nav ul {
    display: flex;
}
.nav li {
    margin-left: 30px;
}
.nav li a {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    display: inline-block;
}
.nav li.active a {
    color: #cc0000;
    border-bottom: 2px solid #cc0000;
}

/* 清除侧边栏，全屏布局 */
.main { display: block; }
.content { width: 100%; }
.sidebar { display: none; }

/* TAG顶部大图 */
.tag-top-banner {
    width: 100%;
    height: 240px;
    background: #2d8cf0;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}
.tag-top-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TAG提示 */
.tag-hint {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
    border: 1px solid #eee;
}
.tag-name {
    color: #2d8cf0;
    font-weight: bold;
}

/* 文章列表 */
.article-list {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}
.article-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    gap: 15px;
}
.article-item:last-child { border-bottom: none; }
.article-img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.article-info { flex: 1; }
.article-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 6px;
}
.article-title:hover { color: #2d8cf0; }
.article-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.article-meta {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}
.article-meta span { margin-right: 15px; }

/* 分页上方TAG标签样式（你要的重点） */
.related-tag-box {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin: 20px 0;
}
.related-tag-box h4 {
    font-size: 15px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: bold;
}
.related-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.related-tag-list a {
    display: inline-block;
    padding: 5px 12px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 30px;
    font-size: 13px;
    color: #333;
    transition: all 0.2s;
}
.related-tag-list a:hover {
    background: #2d8cf0;
    color: #fff;
    border-color: #2d8cf0;
}

/* 底部 */
.footer {
    background: #2a2a2a;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    font-size: 14px;
}
.footer a {
    color: #aaa;
}
.footer a:hover {
    color: #fff;
}

/* 位置导航 */
.position {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}