/* 攻略页面样式 */
.page-banner {
    height: 300px;
    background: url('../images/guide-banner.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.page-title {
    position: relative;
    z-index: 1;
    font-size: 36px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 搜索栏 */
.search-section {
    background: #f5f5f5;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #8B0000;
}

.search-btn {
    padding: 12px 30px;
    background: #8B0000;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: #a00000;
}

/* 主要内容区 */
.main-content {
    padding: 50px 0;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    display: flex;
    transition: transform 0.3s;
}

.article-item:hover {
    transform: translateY(-5px);
}

.article-img {
    width: 300px;
    flex-shrink: 0;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 25px;
    flex-grow: 1;
}

.article-title {
    font-size: 24px;
    color: #8B0000;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-desc {
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    color: #8B0000;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 20px;
    color: #8B0000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B0000;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #333;
    transition: color 0.3s;
}

.category-link:hover {
    color: #8B0000;
}

.category-count {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #666;
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post {
    display: flex;
    gap: 15px;
}

.popular-post-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.popular-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content {
    flex-grow: 1;
}

.popular-post-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.popular-post-title:hover {
    color: #8B0000;
}

.popular-post-date {
    font-size: 12px;
    color: #666;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
    background: #8B0000;
    color: #fff;
    border-color: #8B0000;
} 