/* ==================== 使用指南 ==================== */
/* 页面宽度与内边距沿用 .main-content 默认（与其他页面一致）；
   margin-top 必须保留足够值（导航高 79px），否则内容会被固定导航遮挡 */

.guide-header {
    text-align: center;
    margin: 10px 0 44px;
}

.guide-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text-primary, #1a1a2e);
}

.guide-header p {
    font-size: 15px;
    color: var(--text-secondary, #666);
    margin: 0;
}

/* 文章卡片网格：一行3个 */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 900px) {
    .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .guide-grid { grid-template-columns: 1fr; }
}

.guide-card {
    background: var(--bg-card, #fff);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid var(--border-light, #eee);
    display: block;
    text-decoration: none;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
}

.guide-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--bg-card-hover, #1a1a1a);
}

.guide-card-cover-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.guide-card-title {
    padding: 14px 16px 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary, #1a1a2e);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.guide-empty {
    text-align: center;
    color: var(--text-secondary, #999);
    padding: 80px 0;
    font-size: 15px;
}

/* ==================== 详情页 ==================== */
.guide-detail {
    width: 100%;
    max-width: 860px;
    margin: 120px auto 0;
}

.guide-grid { margin-bottom: 24px; }

.guide-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary, #666);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.guide-back-btn:hover { color: var(--text-primary, #fff); }

.guide-detail-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 12px;
    text-align: center;
    word-break: break-word;
}

.guide-detail-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary, #999);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light, #eee);
}

.guide-detail-cover {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 28px;
    display: block;
}

.guide-detail-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-primary, #333);
    word-break: break-word;
}

.guide-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.guide-detail-content p { margin: 0 0 16px; }

.guide-detail-content h2 {
    font-size: 22px;
    margin: 32px 0 14px;
    font-weight: 600;
}

.guide-detail-content h3 {
    font-size: 19px;
    margin: 26px 0 12px;
    font-weight: 600;
}

.guide-detail-content ul, .guide-detail-content ol {
    padding-left: 24px;
    margin: 0 0 16px;
}

.guide-detail-content li { margin-bottom: 6px; }

.guide-detail-content blockquote {
    margin: 16px 0;
    padding: 10px 18px;
    border-left: 4px solid #667eea;
    background: var(--bg-hover, #f7f8fa);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary, #555);
}

.guide-detail-content code {
    background: var(--bg-hover, #f0f1f3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.guide-detail-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
}

.guide-detail-content pre code { background: none; padding: 0; }
