/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
ul,
li {
    list-style: none;
}
a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}
a:hover {
    color: #c22422;
    text-decoration: underline;
}
.container {
    width: 1200px;
    margin: 0 auto;
}
body {
    line-height: 1.5;
    color: #333;
    background: #f9f9f9;
}

/* 面包屑 */
.breadcrumb {
    height: 40px;
    line-height: 40px;
    background: #f5f5f5;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}
.update-tip {
    background: #fffbe8;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
    margin: 15px 0;
    border: 1px solid #ffeeba;
}
.update-tip strong {
    color: #c22422;
}

/* 头部样式 */
header {
    background: #1a1a1a;
    height: 80px;
    line-height: 80px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.logo {
    float: left;
    color: #c22422;
    font-size: 28px;
    font-weight: bold;
}
nav {
    float: right;
}
nav ul li {
    float: left;
    margin-left: 30px;
}
nav ul li a {
    color: #fff;
    font-size: 16px;
}
nav ul li a.active {
    color: #c22422;
    font-weight: bold;
}
.search-box {
    float: right;
    margin: 20px 0 0 30px;
}
.search-box input {
    width: 200px;
    height: 40px;
    padding: 0 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    float: left;
    outline: none;
}
.search-box button {
    width: 60px;
    height: 40px;
    background: #c22422;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    float: left;
    cursor: pointer;
    transition: background 0.3s;
}
.search-box button:hover {
    background: #a81e1e;
}

/* 攻略分类导航 */
.gonglue-nav {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.gonglue-nav h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a1a1a;
}
.gonglue-nav ul {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.gonglue-nav ul li a {
    display: block;
    padding: 8px 20px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
}
.gonglue-nav ul li a.active,
.gonglue-nav ul li a:hover {
    background: #c22422;
    color: #fff;
}

/* 页面标题 */
.page-title {
    font-size: 26px;
    color: #1a1a1a;
    margin: 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #c22422;
}

/* 攻略列表布局 */
.gonglue-wrap {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}
/* 主内容区 */
.gonglue-main {
    flex: 1;
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
/* 列表项 */
.gonglue-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}
.gonglue-item:last-child {
    border-bottom: none;
}
/* 缩略图样式 */
.item-img {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}
.item-img:hover img {
    transform: scale(1.05);
}
/* 中间标题摘要区域 */
.item-left {
    flex: 1;
    overflow: hidden;
    align-self: center;
}
.gonglue-item .item-title {
    font-size: 16px;
    font-weight: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}
.gonglue-item .item-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #c22422;
    border-radius: 50%;
}
.gonglue-item .item-desc {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gonglue-item .item-tag {
    display: inline-block;
    background: #fef0f0;
    color: #c22422;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 8px;
}
/* 右侧日期浏览量区域 */
.item-right {
    flex-shrink: 0;
    text-align: right;
    align-self: center;
}
.gonglue-item .item-date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 3px;
}
.gonglue-item .item-views {
    font-size: 12px;
    color: #999;
    display: block;
}

/* 侧边栏 */
.gonglue-sidebar {
    width: 300px;
}
.sidebar-box {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.sidebar-title {
    font-size: 18px;
    color: #c22422;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.hot-gonglue-list li {
    height: 36px;
    line-height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 15px;
    position: relative;
    font-size: 14px;
}
.hot-gonglue-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: #c22422;
    border-radius: 50%;
}
.hot-gonglue-list li span {
    float: right;
    color: #999;
    font-size: 12px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: block;
    padding: 8px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 14px;
}
.pagination a:hover {
    border-color: #c22422;
    color: #c22422;
}
.pagination .current {
    background: #c22422;
    color: #fff;
    border-color: #c22422;
}
.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 友链区块 */
.friend-link {
    background: #f8f8f8;
    padding: 20px 0;
    margin-bottom: 30px;
}
.friend-link .block-title {
    font-size: 16px;
    margin-bottom: 15px;
    border-left: 4px solid #c22422;
    padding-left: 10px;
}
.link-list a {
    font-size: 14px;
    margin-right: 20px;
    line-height: 28px;
    display: inline-block;
}

/* 底部版权 */
footer {
    background: #1a1a1a;
    color: #999;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    line-height: 24px;
}
footer a {
    color: #999;
    margin: 0 8px;
}
footer a:hover {
    color: #c22422;
}
.disclaimer {
    margin: 10px 0;
    font-size: 12px;
    max-width: 800px;
    margin: 10px auto;
    color: #777;
}
.icp {
    margin-top: 10px;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    .gonglue-wrap {
        flex-direction: column;
    }
    .gonglue-sidebar {
        width: 100%;
    }
}
@media (max-width: 768px) {
    header {
        height: auto;
        line-height: normal;
        padding: 15px 0;
        position: static;
    }
    .logo {
        float: none;
        text-align: center;
        margin-bottom: 10px;
    }
    .search-box {
        float: none;
        margin: 0 auto 15px;
        display: flex;
        justify-content: center;
    }
    nav {
        float: none;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    nav ul {
        display: inline-block;
    }
    nav ul li {
        float: none;
        display: inline-block;
        margin: 0 12px;
    }
    .gonglue-nav ul {
        gap: 10px;
    }
    .gonglue-nav ul li a {
        padding: 6px 15px;
        font-size: 13px;
    }
    .item-img {
        width: 80px;
        height: 60px;
    }
    .item-desc {
        display: none;
    }
    .gonglue-item .item-title {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .item-right {
        display: none;
    }
}