.page-main {
    padding: 40px 0 60px;
    background: var(--white);
    min-height: calc(100vh - 64px);
}

.page-header {
    text-align: center;
    margin-bottom: 36px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.page-desc {
    font-size: 15px;
    color: var(--gray-500);
}

.page-content {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
}

.article-list-page {
    list-style: none;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.article-list-page li {
    border-bottom: 1px solid var(--gray-100);
}

.article-list-page li:last-child {
    border-bottom: none;
}

.article-list-page a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--gray-700);
}

.article-list-page a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.article-list-page a::after {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

.article-list-page a:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}

.article-meta {
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
    margin-left: 16px;
    font-family: var(--font-mono);
}

.page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-link {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    font-weight: 500;
}

.category-link:hover {
    background: var(--gray-100);
    color: var(--gray-800);
    border-color: var(--gray-300);
}

.category-link.active {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    font-weight: 700;
}

.hot-list {
    list-style: none;
}

.hot-list li {
    margin-bottom: 12px;
}

.hot-list li:last-child {
    margin-bottom: 0;
}

.hot-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.hot-list a:hover {
    color: var(--primary);
}

.hot-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--gray-100);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    flex-shrink: 0;
    font-family: var(--font-mono);
}

.hot-list li:nth-child(1) .hot-num {
    background: var(--primary);
    color: var(--white);
}

.hot-list li:nth-child(2) .hot-num {
    background: var(--primary-100);
    color: var(--primary);
}

.hot-list li:nth-child(3) .hot-num {
    background: var(--primary-50);
    color: var(--primary-600);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.help-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
}

.help-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.help-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.help-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.help-card-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-step {
    display: flex;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: var(--transition);
}

.guide-step:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-sm);
}

.step-num {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
    font-family: var(--font-mono);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.step-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .page-content {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        order: -1;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .page-title {
        font-size: 24px;
    }

    .guide-step {
        flex-direction: column;
        gap: 12px;
    }

    .article-list-page a {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .article-meta {
        margin-left: 0;
    }
}

/* 文章列表项样式 */
.article-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid var(--gray-100);
    gap: 16px;
    align-items: flex-start;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--gray-100);
}

.article-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-item-image img {
    transform: scale(1.05);
}

.article-item-main {
    flex: 1;
    min-width: 0;
}

.article-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.4;
}

.article-item-title a {
    color: inherit;
    text-decoration: none;
}

.article-item-title a:hover {
    color: var(--accent);
}

.article-item-excerpt {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-item-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--gray-500);
}

.article-item-category {
    background: var(--accent-light);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.article-item-date,
.article-item-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .article-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .article-item-image {
        width: 100%;
        height: 160px;
    }
    
    .article-item-meta {
        flex-wrap: wrap;
    }
}

/* 文章列表容器 - 不影响内部文章项样式 */
.article-list-container {
    list-style: none;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
