/* GitHub 文件下载加速工具样式（复用 tools.css 的 .tool-card/.rw-* 等共享类） */

.gh-card {
    display: block;
}

.gh-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4D698E, #3F5A7A);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

/* 输入行：输入框 + Go 按钮 */
.gh-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.gh-input-row .rw-area {
    height: 120px;
    flex: 1 1 auto;
}
.gh-go-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
}
.gh-go-btn {
    min-width: 96px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
}

/* 快捷示例 */
.gh-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.gh-sample {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color, #d6d9de);
    background: transparent;
    color: var(--muted-color, #666);
    cursor: pointer;
}
.gh-sample:hover {
    border-color: var(--primary, #4D698E);
    color: var(--primary, #4D698E);
}

/* 结果列表 */
.gh-outs {
    margin-top: 20px;
    display: none;
}
.gh-outs.show {
    display: block;
}
.gh-out-card {
    border: 1px solid var(--border-color, #d6d9de);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--card-bg, transparent);
}
.gh-out-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-color, #666);
    margin-bottom: 8px;
}
.gh-out-head .fas {
    margin-right: 6px;
}
.gh-cmd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
    white-space: pre-wrap;
    background: var(--code-bg, #f5f6f8);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text-color, #222);
    margin: 0;
}
.gh-out-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* 预检信息条 */
.gh-info {
    display: none;
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted-color, #666);
}
.gh-info.show {
    display: block;
}
.gh-info .fas {
    margin-right: 6px;
}

/* 暗色模式微调 */
.dark .gh-cmd,
.dark-contrast .gh-cmd {
    background: rgba(255, 255, 255, 0.06);
    color: #d8e0ea;
}
.dark .gh-out-card,
.dark-contrast .gh-out-card {
    border-color: rgba(255, 255, 255, 0.12);
}
.dark .gh-sample,
.dark-contrast .gh-sample {
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 767.98px) {
    .gh-input-row {
        flex-direction: column;
    }
    .gh-go-wrap {
        flex-direction: row;
        justify-content: flex-start;
    }
}
