/* 全局重置 */
* {
    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: flex;
    gap: 20px;
    margin-top: 20px;
}
.content {
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sidebar {
    width: 300px;
}

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

/* 文章标题 */
.article-title {
    font-size: 26px;
    line-height: 1.4;
    color: #222;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

/* 文章信息 */
.article-info {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}
.article-info span {
    margin: 0 10px;
}

/* 文章内容 */
.article-content {
    font-size: 16px;
    color: #444;
}
.article-content p {
    margin-bottom: 18px;
    text-indent: 2em;
}
.article-content img {
    margin: 20px auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/*tag*/
.tag-box{
    margin: 30px 0 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}
.tag-tit{
    font-size: 14px;
    color: #666;
    margin-right: 8px;
}
.tag-box a{
    display: inline-block;
    padding: 4px 12px;
    margin: 4px 6px 4px 0;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
}
.tag-box a:hover{
    background: #2d8cf0;
    color: #fff;
    border-color: #2d8cf0;
}

/* 上下篇 */
.article-page {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 15px;
}
.article-page p {
    margin-bottom: 8px;
}

/* 相关文章 */
.related {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.related h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #cc0000;
    padding-left: 10px;
    border-left: 3px solid #cc0000;
}
.related li {
    line-height: 2;
    padding-left: 12px;
    position: relative;
}
.related li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #cc0000;
}

/* 侧边栏模块 */
.widget {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.widget-title {
    font-size: 18px;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #cc0000;
    color: #cc0000;
}
.hot-list li {
    line-height: 2.2;
    border-bottom: 1px dashed #eee;
    padding-left: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.hot-list .number {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #cc0000;
    color: #fff;
    font-size: 12px;
    border-radius: 2px;
    margin-right: 8px;
}
.photo-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.photo-list a {
    font-size: 13px;
    text-align: center;
}
.photo-list img {
    margin-bottom: 6px;
    border-radius: 3px;
}

/* 游戏图文列表 - 图片统一大小 */
.photo-list li a img {
    width: 120px;        /* 统一宽度 */
    height: 80px;        /* 统一高度 */
    object-fit: cover;   /* 不变形 + 自动裁剪居中 */
    border-radius: 4px;  /* 轻微圆角更好看（可选） */
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* 列表排版优化 */
.photo-list li {
    list-style: none;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

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

/* 响应式 */
@media (max-width: 992px) {
    .main {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .nav li {
        margin-left: 15px;
    }
}
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
    }
    .nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .article-title {
        font-size: 22px;
    }
}