/* 帮助详情页面样式 - 黑金风格 */

/* 面包屑导航 */
.breadcrumb {
    max-width: 1200px;
    margin: 120px auto 30px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #8b949e;
}

.breadcrumb a {
    color: #8b949e;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #efc49b;
}

.breadcrumb-separator {
    color: #30363d;
}

/* 主内容布局 */
.detail-layout {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* 文章主体 */
.article {
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 40px;
}

.article__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(239, 196, 155, 0.2);
}

.article__title {
    font-size: 32px;
    color: #e6edf3;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: #8b949e;
}

.article__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-badge {
    padding: 4px 12px;
    background: rgba(239, 196, 155, 0.2);
    color: #efc49b;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* 文章内容 */
.article__content {
    color: #c9d1d9;
    font-size: 16px;
    line-height: 1.8;
}

.article__content h1,
.article__content h2,
.article__content h3,
.article__content h4 {
    color: #e6edf3;
    margin: 32px 0 16px;
    font-weight: 600;
}

.article__content h1 {
    font-size: 28px;
    border-bottom: 2px solid rgba(239, 196, 155, 0.2);
    padding-bottom: 12px;
}

.article__content h2 {
    font-size: 24px;
    border-bottom: 1px solid #30363d;
    padding-bottom: 10px;
}

.article__content h3 {
    font-size: 20px;
}

.article__content h4 {
    font-size: 18px;
}

.article__content p {
    margin: 16px 0;
}

.article__content ul,
.article__content ol {
    margin: 16px 0;
    padding-left: 32px;
}

.article__content li {
    margin: 8px 0;
}

.article__content a {
    color: #efc49b;
    text-decoration: none;
    border-bottom: 1px solid rgba(239, 196, 155, 0.3);
    transition: all 0.3s;
}

.article__content a:hover {
    border-bottom-color: #efc49b;
}

.article__content code {
    background: #0d1117;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    color: #79c0ff;
}

.article__content pre {
    background: #0b0b0b;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #30363d;
}

.article__content pre code {
    background: none;
    padding: 0;
    color: #c9d1d9;
}

.article__content blockquote {
    border-left: 4px solid #efc49b;
    padding-left: 16px;
    margin: 20px 0;
    color: #8b949e;
    font-style: italic;
}

.article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article__content table th,
.article__content table td {
    padding: 12px;
    border: 1px solid #30363d;
    text-align: left;
}

.article__content table th {
    background: #0d1117;
    color: #e6edf3;
    font-weight: 600;
}

.article__content table tr:hover {
    background: rgba(239, 196, 155, 0.05);
}

/* 侧边栏 */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-card {
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card__title {
    font-size: 16px;
    color: #e6edf3;
    margin-bottom: 16px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid #30363d;
}

.related-list {
    list-style: none;
}

.related-item {
    margin-bottom: 16px;
}

.related-link {
    display: block;
    color: #c9d1d9;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s;
}

.related-link:hover {
    background: rgba(239, 196, 155, 0.1);
    color: #efc49b;
    transform: translateX(4px);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(239, 196, 155, 0.1);
    color: #efc49b;
    border: 1px solid rgba(239, 196, 155, 0.2);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.back-btn:hover {
    background: rgba(239, 196, 155, 0.2);
    border-color: #efc49b;
    transform: translateX(-2px);
}

/* 响应式 */
@media (max-width: 768px) {
    .breadcrumb {
        margin-top: 90px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .article {
        padding: 24px 20px;
    }

    .article__title {
        font-size: 24px;
    }

    .sidebar {
        position: static;
    }
}
